mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-05 13:44:42 +00:00
test(utils): Adds a missing test for snake_case
This commit is contained in:
parent
6a58404507
commit
424bd49ede
1 changed files with 6 additions and 0 deletions
|
|
@ -857,6 +857,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