diff --git a/mocha.opts b/mocha.opts
index af6b17a845..427b029758 100644
--- a/mocha.opts
+++ b/mocha.opts
@@ -1,2 +1 @@
---bail
test/test.js
\ No newline at end of file
diff --git a/test/runtime/samples/binding-audio-currenttime-duration-volume/_config.js b/test/runtime/samples/binding-audio-currenttime-duration-volume/_config.js
index 907c512b5d..f59edf3a78 100644
--- a/test/runtime/samples/binding-audio-currenttime-duration-volume/_config.js
+++ b/test/runtime/samples/binding-audio-currenttime-duration-volume/_config.js
@@ -4,29 +4,28 @@ export default {
// instead
skip: true,
- test ( assert, component, target, window ) {
- assert.equal( component.t, 0 );
- assert.equal( component.d, 0 );
- assert.equal( component.v, 0.5 );
- assert.equal( component.paused, true );
+ test(assert, component, target, window) {
+ assert.equal(component.t, 0);
+ assert.equal(component.d, 0);
+ assert.equal(component.v, 0.5);
+ assert.equal(component.paused, true);
- const audio = target.querySelector( 'audio' );
- const timeupdate = new window.Event( 'timeupdate' );
- const durationchange = new window.Event( 'durationchange' );
- const volumechange = new window.Event( 'volumechange' );
+ const audio = target.querySelector('audio');
+ const timeupdate = new window.Event('timeupdate');
+ const durationchange = new window.Event('durationchange');
+ const volumechange = new window.Event('volumechange');
audio.currentTime = 10;
audio.duration = 20;
audio.volume = 0.75;
- audio.dispatchEvent( timeupdate );
- audio.dispatchEvent( durationchange );
- audio.dispatchEvent( volumechange );
+ audio.dispatchEvent(timeupdate);
+ audio.dispatchEvent(durationchange);
+ audio.dispatchEvent(volumechange);
audio.play();
- assert.equal( component.t, 10 );
- assert.equal( component.d, 0 ); // not 20, because read-only. Not sure how to test this!
- assert.equal( component.v, 0.75 );
- assert.equal( component.paused, true ); // ditto...
- component.destroy();
+ assert.equal(component.t, 10);
+ assert.equal(component.d, 0); // not 20, because read-only. Not sure how to test this!
+ assert.equal(component.v, 0.75);
+ assert.equal(component.paused, true); // ditto...
}
};
diff --git a/test/runtime/samples/binding-input-with-event/_config.js b/test/runtime/samples/binding-input-with-event/_config.js
index 695f7e7524..976bec326f 100644
--- a/test/runtime/samples/binding-input-with-event/_config.js
+++ b/test/runtime/samples/binding-input-with-event/_config.js
@@ -3,18 +3,16 @@ export default {
a: 42
},
- test ( assert, component, target, window ) {
- const input = target.querySelector( 'input' );
- assert.equal( input.value, '42' );
+ test(assert, component, target, window) {
+ const input = target.querySelector('input');
+ assert.equal(input.value, '42');
- const event = new window.Event( 'input' );
+ const event = new window.Event('input');
input.value = 43;
- input.dispatchEvent( event );
+ input.dispatchEvent(event);
- assert.equal( input.value, '43' );
- assert.equal( component.a, 43 );
-
- component.destroy();
+ assert.equal(input.value, '43');
+ assert.equal(component.a, 43);
}
};
diff --git a/test/runtime/samples/binding-select-initial-value-undefined/_config.js b/test/runtime/samples/binding-select-initial-value-undefined/_config.js
index f625000edb..aaa2b2f382 100644
--- a/test/runtime/samples/binding-select-initial-value-undefined/_config.js
+++ b/test/runtime/samples/binding-select-initial-value-undefined/_config.js
@@ -13,13 +13,11 @@ export default {
selected: a
`,
- test ( assert, component, target ) {
- const select = target.querySelector( 'select' );
- const options = [ ...target.querySelectorAll( 'option' ) ];
+ test(assert, component, target) {
+ const select = target.querySelector('select');
+ const options = [...target.querySelectorAll('option')];
- assert.equal( select.value, 'a' );
- assert.ok( options[0].selected );
-
- component.destroy();
+ assert.equal(select.value, 'a');
+ assert.ok(options[0].selected);
}
};
diff --git a/test/runtime/samples/binding-select-initial-value/_config.js b/test/runtime/samples/binding-select-initial-value/_config.js
index a1091dc8f7..8a2baa879d 100644
--- a/test/runtime/samples/binding-select-initial-value/_config.js
+++ b/test/runtime/samples/binding-select-initial-value/_config.js
@@ -33,7 +33,5 @@ export default {
assert.equal(select.value, 'b');
assert.ok(options[1].selected);
-
- component.destroy();
},
};
diff --git a/test/runtime/samples/binding-select-late/_config.js b/test/runtime/samples/binding-select-late/_config.js
index 44776897c4..137370b777 100644
--- a/test/runtime/samples/binding-select-late/_config.js
+++ b/test/runtime/samples/binding-select-late/_config.js
@@ -9,24 +9,22 @@ export default {
selected: nothing
`,
- test ( assert, component, target ) {
+ test(assert, component, target) {
component.items = [ 'one', 'two', 'three' ];
component.selected = 'two';
- const options = target.querySelectorAll( 'option' );
- assert.ok( !options[0].selected );
- assert.ok( options[1].selected );
- assert.ok( !options[2].selected );
+ const options = target.querySelectorAll('option');
+ assert.ok(!options[0].selected);
+ assert.ok(options[1].selected);
+ assert.ok(!options[2].selected);
- assert.htmlEqual( target.innerHTML, `
+ assert.htmlEqual(target.innerHTML, `
selected: two
- ` );
-
- component.destroy();
+ `);
}
};
diff --git a/test/runtime/samples/component-binding-deep-b/_config.js b/test/runtime/samples/component-binding-deep-b/_config.js
index 35865575b0..378b845f2d 100644
--- a/test/runtime/samples/component-binding-deep-b/_config.js
+++ b/test/runtime/samples/component-binding-deep-b/_config.js
@@ -30,15 +30,15 @@ export default {
ONE SOURCE\nTWO SOURCE
`,
- test ( assert, component, target, window ) {
- const event = new window.MouseEvent( 'input' );
- const textarea = target.querySelector( 'textarea' );
+ test(assert, component, target, window) {
+ const event = new window.MouseEvent('input');
+ const textarea = target.querySelector('textarea');
textarea.value = 'one source changed';
- textarea.dispatchEvent( event );
+ textarea.dispatchEvent(event);
- assert.equal( component.compiled, 'ONE SOURCE CHANGED\nTWO SOURCE' );
- assert.htmlEqual( target.innerHTML, `
+ assert.equal(component.compiled, 'ONE SOURCE CHANGED\nTWO SOURCE');
+ assert.htmlEqual(target.innerHTML, `