base-test-suite
Version:
Test suite for base projects.
29 lines (21 loc) • 669 B
JavaScript
var assert = require('assert');
module.exports = function(App, options, runner) {
var app;
var View = App.View;
var collection;
describe('collection.isType', function() {
beforeEach(function() {
collection = new View();
});
it('should expose thie "isType" method', function() {
assert.equal(typeof collection.isType, 'function');
});
it('should return true if a collection is the given "type"', function() {
assert(collection.isType('renderable'));
});
it('should return false if a collection is not the given "type"', function() {
assert(!collection.isType('partial'));
});
});
};
;