Skip to content

Instantly share code, notes, and snippets.

@jcdalton2201
Created April 14, 2015 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcdalton2201/e42fff2bd8599714e009 to your computer and use it in GitHub Desktop.
Save jcdalton2201/e42fff2bd8599714e009 to your computer and use it in GitHub Desktop.
mock of bento and I18nn
beforeEach(module(function($provide) {
angular.module('bento.modern', []);
angular.module('pascalprecht.translate', [])
.provider('$translate', function() {
var url = '';
function useStaticFilesLoader(_url) {
url = _url;
}
function preferredLanguage(itme) {
}
return {
useStaticFilesLoader: useStaticFilesLoader,
preferredLanguage: preferredLanguage,
$get: function() {
return {
getUrl: function() {
return url;
}
};
}
};
});
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment