Skip to content

Instantly share code, notes, and snippets.

@awead
Created October 6, 2015 13:48
Show Gist options
  • Select an option

  • Save awead/516931ebcda70552420d to your computer and use it in GitHub Desktop.

Select an option

Save awead/516931ebcda70552420d to your computer and use it in GitHub Desktop.
Jasmine test
describe("toggleCheckbox", function() {
it("toggles the value between 1 and 0", function() {
var html = '<input type="checkbox" name="select_all" id="select_all" value="0" class="ev-select-all"/>';
setFixtures(html);
toggleCheckbox(html);
expect($("#select_all").value).toEqual("1");
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment