Created
March 15, 2016 10:52
-
-
Save chfw/ff5fbe824d0e51bfe092 to your computer and use it in GitHub Desktop.
inject base64 in karma
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
for test that has a dependency on base64 | |
Error: [$injector:unpr] Unknown provider: $base64Provider <- $base64 <- <- Xcomponent | |
to get rid of it, | |
1) include bower_components/angular-base64/angular-base64.js in karma.conf.js | |
2) in the test case, put this along with others | |
beforeEach(function(){ | |
module('base64', /* other modules */); | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment