Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Do not check for order of windows in test
Browse files Browse the repository at this point in the history
The order is not deterministic on Windows, since it depends on focus
state
  • Loading branch information
rafeca committed Apr 5, 2019
1 parent df54e90 commit 7ad8976
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions spec/main-process/atom-application.test.js
Expand Up @@ -967,12 +967,18 @@ describe('AtomApplication', function () {
() => originalApplication.getAllWindows().length === 2
)

// Check that the original application now has two opened windows.
assert.deepEqual(
originalApplication.getAllWindows().map(
window => window.loadSettings.initialPaths
// Check that the original application now has the two opened windows.
assert.notEqual(
originalApplication.getAllWindows().find(
window => window.loadSettings.initialPaths[0] === tempDirPath1
),
[[tempDirPath2], [tempDirPath1]]
undefined
)
assert.notEqual(
originalApplication.getAllWindows().find(
window => window.loadSettings.initialPaths[0] === tempDirPath2
),
undefined
)
})

Expand Down

0 comments on commit 7ad8976

Please sign in to comment.