Skip to content
This repository was archived by the owner on Sep 3, 2020. It is now read-only.

Commit 8b3b164

Browse files
author
Jan Krems
committed
Fix repl after testium-core switch
Fixes #178
1 parent 9f41167 commit 8b3b164

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

lib/cli/console.js

Lines changed: 4 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cli/console.coffee

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ Type `.methods` to see what's available.
3939
{_resolveFilename, _nodeModulePaths} = require 'module'
4040
path = require 'path'
4141

42-
config = require '../config'
43-
{getBrowser} = require '../testium'
42+
{getConfig, getBrowser} = require 'testium-core'
43+
44+
config = getConfig()
4445

4546
collectPublicMethods = (obj) ->
4647
methods = []
@@ -100,9 +101,7 @@ module.exports = ->
100101

101102
Repl = require replModule
102103

103-
getBrowser {useApp: false}, (error, browser) ->
104-
throw error if error?
105-
104+
getBrowser(useApp: false).done (browser) ->
106105
closeBrowser = ->
107106
browser.close (error) ->
108107
return unless error?

0 commit comments

Comments
 (0)