Skip to content

Commit

Permalink
(test) accept 1023 or 1023 pixels window width
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh authored Feb 20, 2024
1 parent f5cb9e9 commit 1b01e67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/electron.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test.describe('Window Loads Properly', async () => {

test('Window bounds are correct', async () => {
const { height, width } = await browserWindow.evaluate((browserWindow) => { return { ...browserWindow.getBounds() } })
expect(width).toBe(1024)
expect(width).toMatch('^102[34]$')

Check failure on line 39 in tests/electron.spec.js

View workflow job for this annotation

GitHub Actions / Build

electron.spec.js:37:7 › Window Loads Properly › Window bounds are correct

1) electron.spec.js:37:7 › Window Loads Properly › Window bounds are correct ───────────────────── Error: expect(received).toMatch(expected) Matcher error: received value must be a string Received has type: number Received has value: 1024 37 | test('Window bounds are correct', async () => { 38 | const { height, width } = await browserWindow.evaluate((browserWindow) => { return { ...browserWindow.getBounds() } }) > 39 | expect(width).toMatch('^102[34]$') | ^ 40 | expect(height).toBe(600) 41 | }) 42 | at /home/runner/work/hero-display/hero-display/tests/electron.spec.js:39:19

Check failure on line 39 in tests/electron.spec.js

View workflow job for this annotation

GitHub Actions / Build

electron.spec.js:37:7 › Window Loads Properly › Window bounds are correct

1) electron.spec.js:37:7 › Window Loads Properly › Window bounds are correct ───────────────────── Error: expect(received).toMatch(expected) Matcher error: received value must be a string Received has type: number Received has value: 1024 37 | test('Window bounds are correct', async () => { 38 | const { height, width } = await browserWindow.evaluate((browserWindow) => { return { ...browserWindow.getBounds() } }) > 39 | expect(width).toMatch('^102[34]$') | ^ 40 | expect(height).toBe(600) 41 | }) 42 | at /home/runner/work/hero-display/hero-display/tests/electron.spec.js:39:19
expect(height).toBe(600)
})

Expand Down

0 comments on commit 1b01e67

Please sign in to comment.