jetfuel-blackbox
Version:
Currently, BlackBox is a boilerplate client-side application framework, built on top of the JetFuel build system and Grunt, Backbone, RequireJS, JetRunner unit test server (Mocha BDD/TDD test framework + PhantomJS + SauceLabs cloud integration), Dust (and Plate Django port) for templating (both client and server-side), Sass, Express dynamic web server, etc. BlackBox is the template used for JetFuel's basic `init` command.
20 lines (15 loc) • 635 B
JavaScript
require(['Backbone', 'model/Controller'], function(Backbone, Controller) {
'use strict';
describe('blackbox.web.model.Controller', function(){
describe('#createRouter()', function(){
it('should create a new Backbone.Router instance', function(){
expect(Controller.createRouter() instanceof Backbone.Router).to.equal(true);
});
});
describe('#start()', function(){
it('should start a Backbone.History session', function(){
expect(Backbone.history instanceof Backbone.History).to.equal(true);
});
});
});
});