refix radio.js, mocha is true

master
Ruslan 2016-10-07 11:24:24 +00:00
parent 75e7f9d289
commit 8f58d1a694
1 changed files with 4 additions and 4 deletions

View File

@ -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');
});
@ -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');
});
});
});
});