Created
January 30, 2017 13:42
-
-
Save javaeeeee/37adfafc932c6e9d60ddd50b0edaf9d4 to your computer and use it in GitHub Desktop.
A Jasmine test spec for HelloController
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
describe('HelloController tests', function () { | |
var scope; | |
var HelloController; | |
beforeEach(function () { | |
module('app'); | |
inject(function ($controller) { | |
scope = {}; | |
HelloController = $controller('HelloController', { $scope: scope }); | |
}); | |
}); | |
it('should be World', function () { | |
expect(scope.myModel).toEqual('World'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment