Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mrmurphy/f75d60505f7a9e8fca9f to your computer and use it in GitHub Desktop.
Save mrmurphy/f75d60505f7a9e8fca9f to your computer and use it in GitHub Desktop.
describe('A simple Angular app testing suite', function() {
it("should load a module from an app, and mock the module's dependency.", function() {
module('NameOfApp', function($provide) {
$provide.value('bar', {baz: function(){return true;}});
});
inject('foo', function(foo) {
expect(foo).not.toBe(null);
});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment