From 05fe5b19a3fce8062eee246a5a95f133890c7105 Mon Sep 17 00:00:00 2001 From: Jovan Milosevic Date: Mon, 25 Sep 2023 15:19:25 +0200 Subject: [PATCH] Fix linting errors after eslint-plugin-qunit bump to v8 --- .../integration/components/phone-input-test.js | 16 ---------------- test-app/tests/unit/services/phone-input-test.js | 1 - 2 files changed, 17 deletions(-) diff --git a/test-app/tests/integration/components/phone-input-test.js b/test-app/tests/integration/components/phone-input-test.js index 4fcc790c..2c9f0ac0 100644 --- a/test-app/tests/integration/components/phone-input-test.js +++ b/test-app/tests/integration/components/phone-input-test.js @@ -11,8 +11,6 @@ module('Integration | Component | phone-input', function (hooks) { }); test('renders an input of type tel', async function (assert) { - assert.expect(1); - await render(hbs`{{phone-input number='1111'}}`); assert.dom('input').hasAttribute('type', 'tel'); @@ -20,7 +18,6 @@ module('Integration | Component | phone-input', function (hooks) { test('renders the value', async function (assert) { assert.expect(3); - const newValue = '2'; this.set('number', null); this.set('update', () => {}); @@ -42,8 +39,6 @@ module('Integration | Component | phone-input', function (hooks) { }); test('renders the custom placeholder', async function (assert) { - assert.expect(1); - this.set('number', null); this.set('update', () => {}); this.set('customPlaceholder', 'A custom placeholder'); @@ -67,8 +62,6 @@ module('Integration | Component | phone-input', function (hooks) { }); test('renders the value with separate dial code option', async function (assert) { - assert.expect(3); - const newValue = '2'; this.set('separateDialNumber', null); this.set('update', (value) => { @@ -94,8 +87,6 @@ module('Integration | Component | phone-input', function (hooks) { }); test('can update the country', async function (assert) { - assert.expect(2); - const country = 'us'; this.set('number', null); this.set('update', () => {}); @@ -114,7 +105,6 @@ module('Integration | Component | phone-input', function (hooks) { test('phoneNumber is correctly invalid when country is changed', async function (assert) { assert.expect(7); - const country = 'fr'; const validFrenchNumber = '0622334455'; this.set('number', null); @@ -174,8 +164,6 @@ module('Integration | Component | phone-input', function (hooks) { }); test('can prevent the dropdown', async function (assert) { - assert.expect(1); - this.set('updateAllowDropdownNumber', () => {}); await render( @@ -192,8 +180,6 @@ module('Integration | Component | phone-input', function (hooks) { }); test('can update the country when the user types in the digits from Brazil code', async function (assert) { - assert.expect(1); - await render(hbs``); await typeIn('input', '+55'); @@ -202,8 +188,6 @@ module('Integration | Component | phone-input', function (hooks) { }); test('can update the country when the user types in the digits from Malaysia code', async function (assert) { - assert.expect(1); - await render(hbs``); await typeIn('input', '+60'); diff --git a/test-app/tests/unit/services/phone-input-test.js b/test-app/tests/unit/services/phone-input-test.js index f5a1c291..9dd4db7e 100644 --- a/test-app/tests/unit/services/phone-input-test.js +++ b/test-app/tests/unit/services/phone-input-test.js @@ -6,7 +6,6 @@ module('Unit | Service | phone-input', function (hooks) { test('load is thenable on first and subsequent renders', function (assert) { assert.expect(2); - let service = this.owner.lookup('service:phone-input'); service.load().then(() => {