testcafe-workshop/test/unit/controller.js
2016-06-16 02:27:34 -06:00

18 lines
436 B
JavaScript

'use strict'
var Controller, getModelStub, getViewStub
describe('controller', function() {
beforeEach(function() {
Controller = window.app.Controller
getModelStub = window.stubs.getModelStub
getViewStub = window.stubs.getViewStub
})
it('can be created', function() {
var view = getViewStub()
var model = getModelStub()
var controller = new Controller(model, view)
expect(controller).to.exist
})
})