This commit is contained in:
Feross Aboukhadijeh
2018-08-28 19:38:25 -07:00
parent 77c497e984
commit 10b4450214
34 changed files with 57 additions and 57 deletions

View File

@@ -32,7 +32,7 @@ function createApp (t) {
path: path.join(__dirname, '..', 'node_modules', '.bin',
'electron' + (process.platform === 'win32' ? '.cmd' : '')),
args: ['-r', path.join(__dirname, 'mocks.js'), path.join(__dirname, '..')],
env: {NODE_ENV: 'test'},
env: { NODE_ENV: 'test' },
waitTimeout: 10e3
})
}

View File

@@ -6,7 +6,7 @@ test('audio-streaming', function (t) {
t.timeoutAfter(60e3)
const app = setup.createApp()
setup.waitForLoad(app, t, {online: true})
setup.waitForLoad(app, t, { online: true })
.then(() => app.client.waitUntilTextExists('.torrent-list', 'Big Buck Bunny'))
// Play Wired CD. Wait for it to start streaming.
.then(() => app.client.moveToObject('#torrent-wired'))

View File

@@ -6,7 +6,7 @@ test('video-streaming', function (t) {
t.timeoutAfter(30e3)
const app = setup.createApp()
setup.waitForLoad(app, t, {online: true})
setup.waitForLoad(app, t, { online: true })
.then(() => app.client.waitUntilTextExists('.torrent-list', 'Big Buck Bunny'))
// Play Big Buck Bunny. Wait for it to start streaming.
.then(() => app.client.moveToObject('.torrent'))