Created
February 20, 2015 05:56
-
-
Save mrmurphy/da8be2cbf7ae8514989e 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
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