Skip to content

Commit

Permalink
fix broken test from Node v6.4.0 update (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjihrig authored Aug 16, 2016
1 parent 1eed257 commit 589ff04
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,12 @@ describe('expect()', () => {
}

Code.settings.truncateMessages = origTruncate;
Hoek.assert(exception.message === 'Expected { a: 1,\n b: \'12345678901234567890123456789012345678901234567890\' } to be a string but got \'object\'', exception);

const lines = exception.message.split('\n');

Hoek.assert(lines.length === 2, exception);
Hoek.assert(lines[0].trim() === 'Expected { a: 1,', exception);
Hoek.assert(lines[1].trim() === 'b: \'12345678901234567890123456789012345678901234567890\' } to be a string but got \'object\'', exception);
done();
});

Expand Down

0 comments on commit 589ff04

Please sign in to comment.