throw error if it exists
This commit is contained in:
parent
c5f70c8d99
commit
14fb3c4598
1 changed files with 2 additions and 3 deletions
|
@ -40,9 +40,8 @@ describe('crash-reporter module', function () {
|
||||||
server.close()
|
server.close()
|
||||||
var form = new multiparty.Form()
|
var form = new multiparty.Form()
|
||||||
form.parse(req, function (error, fields) {
|
form.parse(req, function (error, fields) {
|
||||||
if (called) {
|
if (error) throw error
|
||||||
return
|
if (called) return
|
||||||
}
|
|
||||||
called = true
|
called = true
|
||||||
assert.equal(fields['prod'], 'Electron')
|
assert.equal(fields['prod'], 'Electron')
|
||||||
assert.equal(fields['ver'], process.versions['electron'])
|
assert.equal(fields['ver'], process.versions['electron'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue