Skip to content

Commit 711a493

Browse files
jbdeboerIgorMinar
authored andcommitted
test(utils): Adds a missing test for snake_case
1 parent 7ec926f commit 711a493

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/AngularSpec.js

+6
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,12 @@ describe('angular', function() {
887887
expect(snake_case('ABC')).toEqual('a_b_c');
888888
expect(snake_case('alanBobCharles')).toEqual('alan_bob_charles');
889889
});
890+
891+
892+
it('should allow seperator to be overridden', function() {
893+
expect(snake_case('ABC', '&')).toEqual('a&b&c');
894+
expect(snake_case('alanBobCharles', '&')).toEqual('alan&bob&charles');
895+
});
890896
});
891897

892898

0 commit comments

Comments
 (0)