UNPKG

base-test-suite

Version:
29 lines (21 loc) 669 B
'use strict'; 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')); }); }); };