From 09b471b52e2ac957ac696e8a80aaacf77d927bcd 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 | 18 ------------------ .../tests/unit/services/phone-input-test.js | 2 -- 2 files changed, 20 deletions(-) diff --git a/test-app/tests/integration/components/phone-input-test.js b/test-app/tests/integration/components/phone-input-test.js index 4fcc790c3..9d12f676e 100644 --- a/test-app/tests/integration/components/phone-input-test.js +++ b/test-app/tests/integration/components/phone-input-test.js @@ -11,16 +11,12 @@ 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'); }); test('renders the value', async function (assert) { - assert.expect(3); - const newValue = '2'; this.set('number', null); this.set('update', () => {}); @@ -42,8 +38,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 +61,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 +86,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', () => {}); @@ -113,8 +103,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 +162,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 +178,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 +186,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 f5a1c2911..fe9c35468 100644 --- a/test-app/tests/unit/services/phone-input-test.js +++ b/test-app/tests/unit/services/phone-input-test.js @@ -5,8 +5,6 @@ module('Unit | Service | phone-input', function (hooks) { setupTest(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(() => {