Use more descriptive variable names in model tests

Signed-off-by: Alex Coles <alex@alexbcoles.com>
pull/1032/head
Alex Coles 11 years ago
parent 82920a3011
commit 6d4a6ef3d8
  1. 12
      mocha/tests/models/filter_test.js
  2. 12
      mocha/tests/models/query_test.js
  3. 12
      mocha/tests/models/sortation_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');
});
});

@ -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');
});
});

@ -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');
});
});

Loading…
Cancel
Save