From 8db09688985bb3a3ecf851037328841262f89746 Mon Sep 17 00:00:00 2001 From: Tobias Bieniek Date: Fri, 10 Apr 2020 14:25:33 +0200 Subject: [PATCH] Fix prettier issues --- ember-cli-build.js | 2 +- lib/__tests__/does-not-exist.ts | 5 +---- lib/__tests__/does-not-have-attribute.ts | 5 +---- lib/__tests__/does-not-have-class.ts | 5 +---- lib/__tests__/does-not-have-style.ts | 5 +---- lib/__tests__/does-not-have-tagname.ts | 5 +---- lib/__tests__/does-not-include-text.ts | 5 +---- lib/__tests__/does-not-match-selector.ts | 5 +---- lib/__tests__/exists.ts | 5 +---- lib/__tests__/has-any-text.ts | 5 +---- lib/__tests__/has-any-value.ts | 5 +---- lib/__tests__/has-attribute.ts | 5 +---- lib/__tests__/has-class.ts | 5 +---- lib/__tests__/has-no-text.ts | 5 +---- lib/__tests__/has-no-value.ts | 5 +---- lib/__tests__/has-property.ts | 5 +---- lib/__tests__/has-style.ts | 5 +---- lib/__tests__/has-tagname.ts | 5 +---- lib/__tests__/has-text.ts | 5 +---- lib/__tests__/has-value.ts | 5 +---- lib/__tests__/includes-text.ts | 5 +---- lib/__tests__/is-checked.ts | 5 +---- lib/__tests__/is-disabled.ts | 5 +---- lib/__tests__/is-focused.ts | 5 +---- lib/__tests__/is-not-checked.ts | 5 +---- lib/__tests__/is-not-disabled.ts | 5 +---- lib/__tests__/is-not-focused.ts | 5 +---- lib/__tests__/is-not-required.ts | 5 +---- lib/__tests__/is-not-visible.ts | 5 +---- lib/__tests__/is-required.ts | 5 +---- lib/__tests__/is-visible.ts | 5 +---- lib/__tests__/matches-selector.ts | 5 +---- lib/helpers/element-to-string.ts | 7 ++----- lib/qunit-dom.ts | 2 +- tests/acceptance/qunit-dom-test.js | 4 ++-- tests/dummy/app/router.js | 2 +- tests/dummy/config/environment.js | 2 +- tests/helpers/module-for-acceptance.js | 2 +- 38 files changed, 40 insertions(+), 136 deletions(-) diff --git a/ember-cli-build.js b/ember-cli-build.js index 156e23fa5..19f279699 100644 --- a/ember-cli-build.js +++ b/ember-cli-build.js @@ -3,7 +3,7 @@ const EmberAddon = require('ember-cli/lib/broccoli/ember-addon'); -module.exports = function(defaults) { +module.exports = function (defaults) { let app = new EmberAddon(defaults, { // Add options here }); diff --git a/lib/__tests__/does-not-exist.ts b/lib/__tests__/does-not-exist.ts index 43230dd41..dd7b67323 100644 --- a/lib/__tests__/does-not-exist.ts +++ b/lib/__tests__/does-not-exist.ts @@ -88,10 +88,7 @@ describe('assert.dom(...).doesNotExist()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

bar'; - assert - .dom('h2') - .doesNotExist() - .doesNotExist(); + assert.dom('h2').doesNotExist().doesNotExist(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/does-not-have-attribute.ts b/lib/__tests__/does-not-have-attribute.ts index f9297930f..0df4985c4 100644 --- a/lib/__tests__/does-not-have-attribute.ts +++ b/lib/__tests__/does-not-have-attribute.ts @@ -104,10 +104,7 @@ describe('assert.dom(...).doesNotHaveAttribute()', () => { }); test('supports chaining', () => { - assert - .dom('input') - .doesNotHaveAttribute('disabled') - .doesNotHaveAttribute('required'); + assert.dom('input').doesNotHaveAttribute('disabled').doesNotHaveAttribute('required'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/does-not-have-class.ts b/lib/__tests__/does-not-have-class.ts index be14d71de..b06201551 100644 --- a/lib/__tests__/does-not-have-class.ts +++ b/lib/__tests__/does-not-have-class.ts @@ -138,10 +138,7 @@ describe('assert.dom(...).doesNotHaveClass()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .doesNotHaveClass('foo') - .doesNotHaveClass('bar'); + assert.dom('h1').doesNotHaveClass('foo').doesNotHaveClass('bar'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/does-not-have-style.ts b/lib/__tests__/does-not-have-style.ts index 83264619c..54cb9163f 100644 --- a/lib/__tests__/does-not-have-style.ts +++ b/lib/__tests__/does-not-have-style.ts @@ -117,10 +117,7 @@ describe('assert.dom(...).doesNotHaveStyle()', () => { }); test('supports chaining', () => { - assert - .dom('h2') - .doesNotHaveStyle({ left: 0 }) - .doesNotHaveStyle({ top: 0 }); + assert.dom('h2').doesNotHaveStyle({ left: 0 }).doesNotHaveStyle({ top: 0 }); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/does-not-have-tagname.ts b/lib/__tests__/does-not-have-tagname.ts index 22a42be10..269b6c4dd 100644 --- a/lib/__tests__/does-not-have-tagname.ts +++ b/lib/__tests__/does-not-have-tagname.ts @@ -157,10 +157,7 @@ describe('assert.dom(...).doesNotHaveTagName()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .doesNotHaveTagName('div') - .doesNotHaveTagName('h1'); + assert.dom('h1').doesNotHaveTagName('div').doesNotHaveTagName('h1'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/does-not-include-text.ts b/lib/__tests__/does-not-include-text.ts index b120f2e1b..c14d3a7ff 100644 --- a/lib/__tests__/does-not-include-text.ts +++ b/lib/__tests__/does-not-include-text.ts @@ -134,10 +134,7 @@ describe('assert.dom(...).doesNotIncludeText()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .doesNotIncludeText('foo') - .doesNotIncludeText('bar'); + assert.dom('h1').doesNotIncludeText('foo').doesNotIncludeText('bar'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/does-not-match-selector.ts b/lib/__tests__/does-not-match-selector.ts index 9868f5f84..1a1855707 100644 --- a/lib/__tests__/does-not-match-selector.ts +++ b/lib/__tests__/does-not-match-selector.ts @@ -99,10 +99,7 @@ describe('assert.dom(...).doesNotMatchSelector()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .doesNotMatchSelector('.foo') - .doesNotMatchSelector('.bar'); + assert.dom('h1').doesNotMatchSelector('.foo').doesNotMatchSelector('.bar'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/exists.ts b/lib/__tests__/exists.ts index d1d7e7e13..0e61ba13c 100644 --- a/lib/__tests__/exists.ts +++ b/lib/__tests__/exists.ts @@ -183,10 +183,7 @@ describe('assert.dom(...).exists()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .exists() - .exists(); + assert.dom('h1').exists().exists(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-any-text.ts b/lib/__tests__/has-any-text.ts index 1b60e79d3..515434934 100644 --- a/lib/__tests__/has-any-text.ts +++ b/lib/__tests__/has-any-text.ts @@ -81,10 +81,7 @@ describe('assert.dom(...).hasAnyText()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .hasAnyText() - .hasAnyText(); + assert.dom('h1').hasAnyText().hasAnyText(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-any-value.ts b/lib/__tests__/has-any-value.ts index e8eaf2424..26bea385c 100644 --- a/lib/__tests__/has-any-value.ts +++ b/lib/__tests__/has-any-value.ts @@ -83,10 +83,7 @@ describe('assert.dom(...).hasAnyValue()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .hasAnyValue() - .hasAnyValue(); + assert.dom('input').hasAnyValue().hasAnyValue(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-attribute.ts b/lib/__tests__/has-attribute.ts index aa8c04995..59f16c949 100644 --- a/lib/__tests__/has-attribute.ts +++ b/lib/__tests__/has-attribute.ts @@ -273,10 +273,7 @@ describe('assert.dom(...).hasAttribute()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .hasAttribute('class') - .hasAttribute('class', 'bar'); + assert.dom('h1').hasAttribute('class').hasAttribute('class', 'bar'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-class.ts b/lib/__tests__/has-class.ts index 228492d0b..49b299af2 100644 --- a/lib/__tests__/has-class.ts +++ b/lib/__tests__/has-class.ts @@ -129,10 +129,7 @@ describe('assert.dom(...).hasClass()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .hasClass('foo') - .hasClass('bar'); + assert.dom('h1').hasClass('foo').hasClass('bar'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-no-text.ts b/lib/__tests__/has-no-text.ts index 50ead90d4..381cd6bfd 100644 --- a/lib/__tests__/has-no-text.ts +++ b/lib/__tests__/has-no-text.ts @@ -79,10 +79,7 @@ describe('assert.dom(...).hasNoText()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .hasNoText() - .hasNoText(); + assert.dom('h1').hasNoText().hasNoText(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-no-value.ts b/lib/__tests__/has-no-value.ts index 514cb734a..e74e597e2 100644 --- a/lib/__tests__/has-no-value.ts +++ b/lib/__tests__/has-no-value.ts @@ -81,10 +81,7 @@ describe('assert.dom(...).hasNoValue()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .hasNoValue() - .hasNoValue(); + assert.dom('input').hasNoValue().hasNoValue(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-property.ts b/lib/__tests__/has-property.ts index 2de9139ec..cc13d67ea 100644 --- a/lib/__tests__/has-property.ts +++ b/lib/__tests__/has-property.ts @@ -129,10 +129,7 @@ describe('assert.dom(...).hasProperty()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .hasProperty('className', 'foo') - .hasProperty('tagName', 'BAR'); + assert.dom('h1').hasProperty('className', 'foo').hasProperty('tagName', 'BAR'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-style.ts b/lib/__tests__/has-style.ts index e50affea8..268d0e8e8 100644 --- a/lib/__tests__/has-style.ts +++ b/lib/__tests__/has-style.ts @@ -116,10 +116,7 @@ describe('assert.dom(...).hasStyle()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .hasStyle({ top: 42 }) - .hasStyle({ left: 0 }); + assert.dom('h1').hasStyle({ top: 42 }).hasStyle({ left: 0 }); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-tagname.ts b/lib/__tests__/has-tagname.ts index 6b4057154..207dcef9a 100644 --- a/lib/__tests__/has-tagname.ts +++ b/lib/__tests__/has-tagname.ts @@ -153,10 +153,7 @@ describe('assert.dom(...).hasTagName()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .hasTagName('h1') - .hasTagName('foo'); + assert.dom('h1').hasTagName('h1').hasTagName('foo'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-text.ts b/lib/__tests__/has-text.ts index a949c99a8..856e0c0c1 100644 --- a/lib/__tests__/has-text.ts +++ b/lib/__tests__/has-text.ts @@ -153,10 +153,7 @@ describe('assert.dom(...).hasText()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .hasText('foo') - .hasText('bar'); + assert.dom('h1').hasText('foo').hasText('bar'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/has-value.ts b/lib/__tests__/has-value.ts index 90e3a1053..8ea09baa4 100644 --- a/lib/__tests__/has-value.ts +++ b/lib/__tests__/has-value.ts @@ -238,10 +238,7 @@ describe('assert.dom(...).hasValue()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .hasValue('foo') - .hasValue('bar'); + assert.dom('input').hasValue('foo').hasValue('bar'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/includes-text.ts b/lib/__tests__/includes-text.ts index 66292b74e..a10f5cd81 100644 --- a/lib/__tests__/includes-text.ts +++ b/lib/__tests__/includes-text.ts @@ -228,10 +228,7 @@ describe('assert.dom(...).includesText()', () => { test('supports chaining', () => { document.body.innerHTML = '

foo

'; - assert - .dom('h1') - .includesText('foo') - .includesText('bar'); + assert.dom('h1').includesText('foo').includesText('bar'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-checked.ts b/lib/__tests__/is-checked.ts index 11c693611..0b1ef5125 100644 --- a/lib/__tests__/is-checked.ts +++ b/lib/__tests__/is-checked.ts @@ -192,10 +192,7 @@ describe('assert.dom(...).isChecked()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isChecked() - .isChecked(); + assert.dom('input').isChecked().isChecked(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-disabled.ts b/lib/__tests__/is-disabled.ts index 2c1d55e35..eac10a99f 100644 --- a/lib/__tests__/is-disabled.ts +++ b/lib/__tests__/is-disabled.ts @@ -165,10 +165,7 @@ describe('assert.dom(...).isDisabled()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isDisabled() - .isDisabled(); + assert.dom('input').isDisabled().isDisabled(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-focused.ts b/lib/__tests__/is-focused.ts index 524fc4eca..6e3babdb8 100644 --- a/lib/__tests__/is-focused.ts +++ b/lib/__tests__/is-focused.ts @@ -138,10 +138,7 @@ describe('assert.dom(...).isFocused()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isFocused() - .isFocused(); + assert.dom('input').isFocused().isFocused(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-not-checked.ts b/lib/__tests__/is-not-checked.ts index b596eb643..6ff98e145 100644 --- a/lib/__tests__/is-not-checked.ts +++ b/lib/__tests__/is-not-checked.ts @@ -192,10 +192,7 @@ describe('assert.dom(...).isNotChecked()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isNotChecked() - .isNotChecked(); + assert.dom('input').isNotChecked().isNotChecked(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-not-disabled.ts b/lib/__tests__/is-not-disabled.ts index c3ca2a228..2ceea1b2c 100644 --- a/lib/__tests__/is-not-disabled.ts +++ b/lib/__tests__/is-not-disabled.ts @@ -165,10 +165,7 @@ describe('assert.dom(...).isNotDisabled()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isNotDisabled() - .isNotDisabled(); + assert.dom('input').isNotDisabled().isNotDisabled(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-not-focused.ts b/lib/__tests__/is-not-focused.ts index 6c6810f62..a9325f0e5 100644 --- a/lib/__tests__/is-not-focused.ts +++ b/lib/__tests__/is-not-focused.ts @@ -138,10 +138,7 @@ describe('assert.dom(...).isNotFocused()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isNotFocused() - .isNotFocused(); + assert.dom('input').isNotFocused().isNotFocused(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-not-required.ts b/lib/__tests__/is-not-required.ts index 56a9b97c0..4e8c0716e 100644 --- a/lib/__tests__/is-not-required.ts +++ b/lib/__tests__/is-not-required.ts @@ -135,10 +135,7 @@ describe('assert.dom(...).isNotRequired()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isNotRequired() - .isNotRequired(); + assert.dom('input').isNotRequired().isNotRequired(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-not-visible.ts b/lib/__tests__/is-not-visible.ts index b5c628cb8..12661a2d7 100644 --- a/lib/__tests__/is-not-visible.ts +++ b/lib/__tests__/is-not-visible.ts @@ -68,10 +68,7 @@ describe('assert.dom(...).isNotVisible()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isNotVisible() - .isNotVisible(); + assert.dom('input').isNotVisible().isNotVisible(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-required.ts b/lib/__tests__/is-required.ts index 75a83f396..91a3be2fa 100644 --- a/lib/__tests__/is-required.ts +++ b/lib/__tests__/is-required.ts @@ -135,10 +135,7 @@ describe('assert.dom(...).isRequired()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isRequired() - .isRequired(); + assert.dom('input').isRequired().isRequired(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/is-visible.ts b/lib/__tests__/is-visible.ts index c127df118..770e5091b 100644 --- a/lib/__tests__/is-visible.ts +++ b/lib/__tests__/is-visible.ts @@ -117,10 +117,7 @@ describe('assert.dom(...).isVisible()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .isVisible() - .isVisible(); + assert.dom('input').isVisible().isVisible(); expect(assert.results.length).toEqual(2); }); diff --git a/lib/__tests__/matches-selector.ts b/lib/__tests__/matches-selector.ts index 561a55e1d..c94b8739c 100644 --- a/lib/__tests__/matches-selector.ts +++ b/lib/__tests__/matches-selector.ts @@ -99,10 +99,7 @@ describe('assert.dom(...).matchesSelector()', () => { test('supports chaining', () => { document.body.innerHTML = ''; - assert - .dom('input') - .matchesSelector('.foo') - .matchesSelector('.bar'); + assert.dom('input').matchesSelector('.foo').matchesSelector('.bar'); expect(assert.results.length).toEqual(2); }); diff --git a/lib/helpers/element-to-string.ts b/lib/helpers/element-to-string.ts index 985faf0c8..4aa245605 100644 --- a/lib/helpers/element-to-string.ts +++ b/lib/helpers/element-to-string.ts @@ -8,10 +8,7 @@ export default function elementToString(el: Element | NodeList | string | null): if (el.length === 0) { return 'empty NodeList'; } - desc = Array.prototype.slice - .call(el, 0, 5) - .map(elementToString) - .join(', '); + desc = Array.prototype.slice.call(el, 0, 5).map(elementToString).join(', '); return el.length > 5 ? `${desc}... (+${el.length - 5} more)` : desc; } if (!(el instanceof HTMLElement || el instanceof SVGElement)) { @@ -25,7 +22,7 @@ export default function elementToString(el: Element | NodeList | string | null): if (el.className && !(el.className instanceof SVGAnimatedString)) { desc += `.${String(el.className).replace(/\s+/g, '.')}`; } - Array.prototype.forEach.call(el.attributes, function(attr: Attr) { + Array.prototype.forEach.call(el.attributes, function (attr: Attr) { if (attr.name !== 'class' && attr.name !== 'id') { desc += `[${attr.name}${attr.value ? `="${attr.value}"]` : ']'}`; } diff --git a/lib/qunit-dom.ts b/lib/qunit-dom.ts index f8e909002..53ac39343 100644 --- a/lib/qunit-dom.ts +++ b/lib/qunit-dom.ts @@ -8,7 +8,7 @@ declare global { } } -QUnit.assert.dom = function( +QUnit.assert.dom = function ( target?: string | Element | null, rootElement?: Element ): DOMAssertions { diff --git a/tests/acceptance/qunit-dom-test.js b/tests/acceptance/qunit-dom-test.js index 20158528f..a63b1d36c 100644 --- a/tests/acceptance/qunit-dom-test.js +++ b/tests/acceptance/qunit-dom-test.js @@ -2,10 +2,10 @@ import { module, test } from 'qunit'; import { setupApplicationTest } from 'ember-qunit'; import { visit } from '@ember/test-helpers'; -module('Acceptance | qunit-dom', function(hooks) { +module('Acceptance | qunit-dom', function (hooks) { setupApplicationTest(hooks); - test('qunit-dom assertions are available', async function(assert) { + test('qunit-dom assertions are available', async function (assert) { assert.ok(assert.dom, 'assert.dom is available'); assert.ok(assert.dom('.foo').includesText, 'assert.dom(...).includesText is available'); diff --git a/tests/dummy/app/router.js b/tests/dummy/app/router.js index 8f6f45989..a44f39d47 100644 --- a/tests/dummy/app/router.js +++ b/tests/dummy/app/router.js @@ -6,6 +6,6 @@ const Router = EmberRouter.extend({ rootURL: config.rootURL, }); -Router.map(function() {}); +Router.map(function () {}); export default Router; diff --git a/tests/dummy/config/environment.js b/tests/dummy/config/environment.js index 379914682..ea349edec 100644 --- a/tests/dummy/config/environment.js +++ b/tests/dummy/config/environment.js @@ -1,7 +1,7 @@ /* eslint-env node */ 'use strict'; -module.exports = function(environment) { +module.exports = function (environment) { let ENV = { modulePrefix: 'dummy', environment, diff --git a/tests/helpers/module-for-acceptance.js b/tests/helpers/module-for-acceptance.js index 364089288..354231234 100644 --- a/tests/helpers/module-for-acceptance.js +++ b/tests/helpers/module-for-acceptance.js @@ -3,7 +3,7 @@ import { resolve } from 'rsvp'; import startApp from '../helpers/start-app'; import destroyApp from '../helpers/destroy-app'; -export default function(name, options = {}) { +export default function (name, options = {}) { module(name, { beforeEach() { this.application = startApp();