Skip to content

Commit

Permalink
Fix linting errors after eslint-plugin-qunit bump to v8
Browse files Browse the repository at this point in the history
  • Loading branch information
Jovan Milosevic committed Sep 25, 2023
1 parent 92c8a48 commit 09b471b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
18 changes: 0 additions & 18 deletions test-app/tests/integration/components/phone-input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {});
Expand All @@ -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');
Expand All @@ -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) => {
Expand All @@ -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', () => {});
Expand All @@ -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);
Expand Down Expand Up @@ -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(
Expand All @@ -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`<PhoneInput />`);

await typeIn('input', '+55');
Expand All @@ -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`<PhoneInput />`);

await typeIn('input', '+60');
Expand Down
2 changes: 0 additions & 2 deletions test-app/tests/unit/services/phone-input-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 09b471b

Please sign in to comment.