Skip to content

Commit b375fd1

Browse files
committed
Fix insights test
1 parent d952013 commit b375fd1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/insights.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ describe('Insights', function () {
1717
resp.should.have.property('transactionId')
1818
done()
1919
})
20-
.catch(done)
20+
.catch((ex) => {
21+
if (ex.transactionId) {
22+
done()
23+
} else {
24+
done(new Error(ex))
25+
}
26+
})
2127
})
2228
})

0 commit comments

Comments
 (0)