PageRenderTime 52ms CodeModel.GetById 25ms 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. describe('Controller: ContacteCtrl', function() {
  3. // load the controller's module
  4. beforeEach(module('torredelpriorApp'));
  5. var ContacteCtrl,
  6. scope;
  7. // Initialize the controller and a mock scope
  8. beforeEach(inject(function($controller) {
  9. scope = {};
  10. ContacteCtrl = $controller('ContacteCtrl', {
  11. $scope: scope
  12. });
  13. }));
  14. it('should attach a list of awesomeThings to the scope', function() {
  15. expect(scope.awesomeThings.length).toBe(3);
  16. });
  17. });