PageRenderTime 23ms CodeModel.GetById 17ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/test/spec/controllers/contacte.js

https://bitbucket.org/ceoaliongroo/torredelprior
JavaScript | 22 lines | 15 code | 5 blank | 2 comment | 0 complexity | 81acc74d0c76b7297bc6017f42b1d2e0 MD5 | raw file
 1'use strict';
 2
 3describe('Controller: ContacteCtrl', function() {
 4
 5  // load the controller's module
 6  beforeEach(module('torredelpriorApp'));
 7
 8  var ContacteCtrl,
 9    scope;
10
11  // Initialize the controller and a mock scope
12  beforeEach(inject(function($controller) {
13    scope = {};
14    ContacteCtrl = $controller('ContacteCtrl', {
15      $scope: scope
16    });
17  }));
18
19  it('should attach a list of awesomeThings to the scope', function() {
20    expect(scope.awesomeThings.length).toBe(3);
21  });
22});