diff --git a/mocha/tests/models/filter_test.js b/mocha/tests/models/filter_test.js index 2f4b55f955..d1a189576b 100644 --- a/mocha/tests/models/filter_test.js +++ b/mocha/tests/models/filter_test.js @@ -2,20 +2,20 @@ describe('Filter', function() { - var model; + var Filter; beforeEach(module('openproject.models')); - beforeEach(inject(function(Filter) { - model = Filter; + beforeEach(inject(function(_Filter_) { + Filter = _Filter_; })); it('should exist', function() { - expect(model).to.exist; + expect(Filter).to.exist; }); it('should be a constructor function', function() { - expect(new model()).to.exist; - expect(new model()).to.be.an('object'); + expect(new Filter()).to.exist; + expect(new Filter()).to.be.an('object'); }); }); diff --git a/mocha/tests/models/query_test.js b/mocha/tests/models/query_test.js index 87945b7aab..19c2a8113a 100644 --- a/mocha/tests/models/query_test.js +++ b/mocha/tests/models/query_test.js @@ -2,20 +2,20 @@ describe('Query', function() { - var model; + var Query; beforeEach(module('openproject.models')); - beforeEach(inject(function(Query) { - model = Query; + beforeEach(inject(function(_Query_) { + Query = _Query_; })); it('should exist', function() { - expect(model).to.exist; + expect(Query).to.exist; }); it('should be a constructor function', function() { - expect(new model()).to.exist; - expect(new model()).to.be.an('object'); + expect(new Query()).to.exist; + expect(new Query()).to.be.an('object'); }); }); diff --git a/mocha/tests/models/sortation_test.js b/mocha/tests/models/sortation_test.js index 78193fd92f..0afd6bbde7 100644 --- a/mocha/tests/models/sortation_test.js +++ b/mocha/tests/models/sortation_test.js @@ -2,20 +2,20 @@ describe('Sortation', function() { - var model; + var Sortation; beforeEach(module('openproject.models')); - beforeEach(inject(function(Sortation) { - model = Sortation; + beforeEach(inject(function(_Sortation_) { + Sortation = _Sortation_; })); it('should exist', function() { - expect(model).to.exist; + expect(Sortation).to.exist; }); it('should be a constructor function', function() { - expect(new model()).to.exist; - expect(new model()).to.be.an('object'); + expect(new Sortation()).to.exist; + expect(new Sortation()).to.be.an('object'); }); });