New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add provider.$decorator to angular.Module #11300

Closed
wants to merge 5 commits into
base: master
from
Jump to file or symbol
Failed to load files and symbols.
+2 −0
Diff settings

Always

Just for now

Viewing a subset of changes. View all

Add test for provider.$decorator to angular.Module

  • Loading branch information...
RodneyEbanks committed Mar 12, 2015
commit a07c1b89eea5f5c5ff48182ec9742cf3043b0007
View
@@ -41,10 +41,12 @@ describe('module loader', function() {
controller('ctrl', 'ccc').
config('init2').
constant('abc', 123).
decorator('dk', 'dv').
run('runBlock')).toBe(myModule);
expect(myModule.requires).toEqual(['other']);
expect(myModule._invokeQueue).toEqual([
['$provide', 'decorator', ['dk', 'dv']],
['$provide', 'constant', ['abc', 123]],
['$provide', 'provider', ['sk', 'sv']],
['$provide', 'factory', ['fk', 'fv']],
ProTip! Use n and p to navigate between commits in a pull request.