Skip to content

Commit

Permalink
refix radio.js, mocha is true
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruslan committed Oct 7, 2016
1 parent 75e7f9d commit 8f58d1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/radio.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('MaterialRadio', function () {
changeEvent.initEvent("change", false, true);

// Check that all inputs are in a clean state
document.querySelectorAll('[type="radio"]').forEach(function(item) {
Array.prototype.splice(document.querySelectorAll('[type="radio"]')).forEach(function(item) {
expect(item.parentElement.className).to.equal('mdl-radio mdl-js-radio is-upgraded');
});

Expand All @@ -125,9 +125,9 @@ describe('MaterialRadio', function () {
expect(radios[0].className).to.equal('mdl-radio mdl-js-radio is-upgraded');

// Check the extra radio set to verify things with different names are not touched when changing.
document.querySelectorAll('[type="radio"][name="tester"]').forEach(function(item) {
Array.prototype.splice(document.querySelectorAll('[type="radio"][name="tester"]')).forEach(function(item) {
expect(item.parentElement.className).to.equal('mdl-radio mdl-js-radio is-upgraded');
});

});
});
});

0 comments on commit 8f58d1a

Please sign in to comment.