Skip to content

Commit

Permalink
Added test for jQuery.camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Warren Keith committed Jan 28, 2018
1 parent 9c19881 commit 9adb621
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,14 @@ describe("Utils", function() {

});

describe('jQuery camelCase (private method)', () => {
it('is available as a method on the jQuery object', () => {
$.camelCase.should.be.a("function");
});
it("turns a kebab-case string into a camelCase string", ()=>{
var string = "this-is-kebab-case";
$.camelCase(string).should.equal("thisIsKebabCase");
})
});

});

0 comments on commit 9adb621

Please sign in to comment.