mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-01-12 22:45:52 +08:00
test(injector): allow service names with a single underscore
Closes #9024
This commit is contained in:
committed by
Peter Bacon Darwin
parent
02169d4957
commit
f0ee335311
@@ -182,6 +182,10 @@ describe('injector', function() {
|
||||
expect(annotate(beforeEachFn)).toEqual(['foo']);
|
||||
});
|
||||
|
||||
it('should not strip service names with a single underscore', function() {
|
||||
function beforeEachFn(_) { /* _ = _ */ }
|
||||
expect(annotate(beforeEachFn)).toEqual(['_']);
|
||||
});
|
||||
|
||||
it('should handle no arg functions', function() {
|
||||
function $f_n0() {}
|
||||
|
||||
Reference in New Issue
Block a user