Skip to content

Commit

Permalink
Merge pull request #741 from qonto/eslint-qunit-bump
Browse files Browse the repository at this point in the history
Bump eslint-plugin-qunit
  • Loading branch information
m-jovan authored Sep 25, 2023
2 parents 92c8a48 + 05fe5b1 commit 5a5ee02
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
16 changes: 0 additions & 16 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,13 @@ 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 +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');
Expand All @@ -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) => {
Expand All @@ -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', () => {});
Expand All @@ -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);
Expand Down Expand Up @@ -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(
Expand All @@ -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`<PhoneInput />`);

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

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

0 comments on commit 5a5ee02

Please sign in to comment.