Created
January 2, 2015 13:56
-
-
Save ivanursul/cde564974557c808a749 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| describe('Controller: MainCtrl', function () { | |
| // load the controller's module | |
| beforeEach(module('angularjsGettingStartedApp')); | |
| var MainCtrl, | |
| scope; | |
| // Initialize the controller and a mock scope | |
| beforeEach(inject(function ($controller, $rootScope) { | |
| scope = $rootScope.$new(); | |
| MainCtrl = $controller('MainCtrl', { | |
| $scope: scope | |
| }); | |
| })); | |
| it('should attach a list of awesomeThings to the scope', function () { | |
| expect(scope.awesomeThings.length).toBe(3); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment