Skip to content

Instantly share code, notes, and snippets.

@javaeeeee
Created January 30, 2017 13:42
Show Gist options
  • Save javaeeeee/37adfafc932c6e9d60ddd50b0edaf9d4 to your computer and use it in GitHub Desktop.
Save javaeeeee/37adfafc932c6e9d60ddd50b0edaf9d4 to your computer and use it in GitHub Desktop.
A Jasmine test spec for HelloController
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