mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Fix AVA tests on Linux (#735)
This commit is contained in:
parent
a561f4650b
commit
cb40b59183
1 changed files with 16 additions and 1 deletions
|
|
@ -8,8 +8,23 @@ import {Application} from 'spectron';
|
|||
let app;
|
||||
|
||||
test.before(async () => {
|
||||
let pathToBinary;
|
||||
|
||||
switch (process.platform) {
|
||||
case 'linux':
|
||||
pathToBinary = path.join(__dirname, '../dist/linux-unpacked/HyperTerm');
|
||||
break;
|
||||
|
||||
case 'darwin':
|
||||
pathToBinary = path.join(__dirname, '../dist/mac/HyperTerm.app/Contents/MacOS/HyperTerm');
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new Error('Path to the built binary needs to be defined for this platform in test/index.js');
|
||||
}
|
||||
|
||||
app = new Application({
|
||||
path: path.join(__dirname, '../dist/mac/HyperTerm.app/Contents/MacOS/HyperTerm')
|
||||
path: pathToBinary
|
||||
});
|
||||
|
||||
await app.start();
|
||||
|
|
|
|||
Loading…
Reference in a new issue