-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
622 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { config, resetConfig } from '../src/config'; | ||
import { disableShieldMode } from '../src/shield'; | ||
|
||
beforeEach(async () => { | ||
process.argv = []; | ||
await disableShieldMode('ulysse'); | ||
await resetConfig(); | ||
jest.spyOn(console, 'log').mockImplementation(() => {}); | ||
}); | ||
|
||
test.skip('Should create a new profile', () => { | ||
process.argv = ['ulysse', '-p', 'work']; | ||
|
||
expect(config.profiles).toEqual([{ name: 'work', enabled: true }]); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { listActiveWindows } from '../src/x11'; | ||
|
||
test.skip('Should list active windows', async () => { | ||
const windows = await listActiveWindows(); | ||
|
||
expect(windows[0]).toEqual( | ||
{ windowId: expect.any(Number), name: expect.any(String), pid: expect.any(Number) }, | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* eslint class-methods-use-this: 0 */ | ||
const TestSequencer = require('@jest/test-sequencer').default; | ||
|
||
class AlphabeticalSequencer extends TestSequencer { | ||
sort(tests) { | ||
return tests.sort((testA, testB) => { | ||
const nameA = testA.path.toUpperCase(); | ||
const nameB = testB.path.toUpperCase(); | ||
return nameA.localeCompare(nameB); | ||
}); | ||
} | ||
} | ||
|
||
module.exports = AlphabeticalSequencer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.