Skip to content

Commit

Permalink
Merge pull request #34 from canjs/fix-edge15
Browse files Browse the repository at this point in the history
fix boolean-to-inList test for edge 15
  • Loading branch information
Christopher Baker committed Jun 21, 2017
2 parents 37d84ad + 932017e commit 2eb3c73
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/boolean-to-inList_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ var each = require("can-util/js/each/each");

var QUnit = require("steal-qunit");

QUnit.module("boolean-to-inList");
QUnit.module("boolean-to-inList", {
setup: function(){
this.fixture = document.getElementById('qunit-fixture');
}
});

QUnit.test("Works with checkboxes", function(){
var template = stache("<input type='checkbox' {($checked)}='boolean-to-inList(item, list)' />");
Expand Down Expand Up @@ -71,6 +75,8 @@ QUnit.test("works with radio buttons", function(){
var radioOne = frag.firstChild.firstChild;
var radioTwo = radioOne.nextSibling;

this.fixture.appendChild(frag);

// Initial state
QUnit.equal(radioOne.checked, false, "Matthew not checked");
QUnit.equal(radioTwo.checked, true, "Wilbur is checked");
Expand All @@ -81,4 +87,3 @@ QUnit.test("works with radio buttons", function(){
QUnit.equal(radioOne.checked, true, "Matthew is checked");
QUnit.equal(radioTwo.checked, false, "Wilbur is not checked");
});

0 comments on commit 2eb3c73

Please sign in to comment.