Skip to content

Commit

Permalink
#27 - Making old tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpmartins committed Aug 10, 2021
1 parent c89bcfb commit 2bb8bf0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/component.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,6 @@ test('Test if non masked values are correctly translated', async () => {
await input.setValue('5971513.15');

const updates = component.emitted()['update:model-value'];
expect(updates[updates.length - 1][0]).toBe(5971513.15);
expect(updates[updates.length - 1][0]).toBe('5971513.15');
expect(input.element.value).toBe('5,971,513.15');
});
4 changes: 2 additions & 2 deletions tests/puppeteer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ describe('Puppeteer Tests', () => {
});

it('Test default integer model', async () => {
await page.goto(`${serverUrl}?amount=12`);
await page.goto(`${serverUrl}?componentAmount=12`);

expect(await getValue()).toBe('12.00');
});

it('Test default float model', async () => {
await page.goto(`${serverUrl}?amount=12.1`);
await page.goto(`${serverUrl}?componentAmount=12.1`);

expect(await getValue()).toBe('12.10');
});
Expand Down
2 changes: 1 addition & 1 deletion tests/utils.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ test('unformat number should strip the string', () => {
suffix: '/100',
thousands: '.',
decimal: ',',
})).toBe(1123.45);
})).toBe('1123.45');
});

0 comments on commit 2bb8bf0

Please sign in to comment.