Blame view

test/spec/controllers/aboutSpec.js 648 Bytes
c87bc1f33   TRUONG   first commit: ini...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  /*jshint unused: vars */
  define(['angular', 'angular-mocks', 'app'], function(angular, mocks, app) {
    'use strict';
  
    describe('Controller: AboutCtrl', function () {
  
      // load the controller's module
      beforeEach(module('tshatsApp'));
  
      var AboutCtrl,
        scope;
  
      // Initialize the controller and a mock scope
      beforeEach(inject(function ($controller, $rootScope) {
        scope = $rootScope.$new();
        AboutCtrl = $controller('AboutCtrl', {
          $scope: scope
        });
      }));
  
      it('should attach a list of awesomeThings to the scope', function () {
        expect(scope.awesomeThings.length).toBe(3);
      });
    });
  });