mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-28 15:28:15 +00:00
test(utils): Adds a missing test for snake_case
This commit is contained in:
parent
7ec926ff56
commit
711a493709
1 changed files with 6 additions and 0 deletions
|
|
@ -887,6 +887,12 @@ describe('angular', function() {
|
||||||
expect(snake_case('ABC')).toEqual('a_b_c');
|
expect(snake_case('ABC')).toEqual('a_b_c');
|
||||||
expect(snake_case('alanBobCharles')).toEqual('alan_bob_charles');
|
expect(snake_case('alanBobCharles')).toEqual('alan_bob_charles');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
it('should allow seperator to be overridden', function() {
|
||||||
|
expect(snake_case('ABC', '&')).toEqual('a&b&c');
|
||||||
|
expect(snake_case('alanBobCharles', '&')).toEqual('alan&bob&charles');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue