Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix boolean-to-inList test for edge 15 #34

Merged
merged 1 commit into from
Jun 21, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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");
});