Skip to content

Commit

Permalink
Fixing the Error checking - checks first line of error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
computamike committed May 24, 2019
1 parent 9666bad commit 15d1bbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/hue.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ describe('Hue Class', () => {
await hue.init()
expect(0).to.equal(1)
} catch (e) {
expect(e.message).to.equal('Cannot find module \'null\'')
expect(e.message.split('\n')[0]).to.equal('Cannot find module \'null\'')
}

mockConfig.modules = []
Expand Down Expand Up @@ -241,7 +241,7 @@ describe('Hue Class', () => {
await hue.init()
expect(0).to.equal(1)
} catch (e) {
expect(e.message).to.equal('Cannot find module \'null\'')
expect(e.message.split('\n')[0]).to.equal('Cannot find module \'null\'')
}

mockConfig.reporters = []
Expand Down

0 comments on commit 15d1bbb

Please sign in to comment.