mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-21 01:57:06 +08:00
test(utils): Adds a missing test for snake_case
This commit is contained in:
@@ -887,6 +887,12 @@ describe('angular', function() {
|
||||
expect(snake_case('ABC')).toEqual('a_b_c');
|
||||
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');
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user