test(injector): allow service names with a single underscore

Closes #9024
This commit is contained in:
Ciro Nunes
2014-09-10 14:56:18 -03:00
committed by Peter Bacon Darwin
parent 02169d4957
commit f0ee335311

View File

@@ -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() {}