UNPKG

generator-teonet-webkit

Version:

Teonet node-webkit application generator

26 lines (19 loc) 580 B
/* global expect */ 'use strict'; describe('Controller: TeoDbCtrl', function () { // load the controller's module beforeEach(module('teonetWebkitApp')); var TeoDbCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); TeoDbCtrl = $controller('TeoDbCtrl', { $scope: scope // place here mocked dependencies }); })); it('should attach a list of awesomeThings to the scope', function () { expect(TeoDbCtrl.awesomeThings.length).toBe(3); }); });