Beispiel #1
0
 it('doesn\'t underscore if second param is false', () => {
   expect(Utils.underscoredIf('fooBar', false)).to.equal('fooBar');
 });
Beispiel #2
0
 it('doesn\'t camelize if second param is false', () => {
   expect(Utils.underscoredIf('fooBar', true)).to.equal('foo_bar');
 });
Beispiel #3
0
 it('underscores if second param is true', () => {
   expect(Utils.underscoredIf('fooBar', true)).to.equal('foo_bar');
 });