Skip to content

Commit 3a850f1

Browse files
committed
Fixed failing test (was looking at the old style err.message)
1 parent 481298f commit 3a850f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('clients', () => {
2525
const client = new Client('foo', 'bar').usePromises();
2626
assert.equal(true, client.promises);
2727
client.users.list().catch(err => {
28-
assert.equal(true, err.message.indexOf('error.list') !== -1);
28+
assert.deepStrictEqual({ type: 'error.list' }, err.body);
2929
done();
3030
});
3131
});

0 commit comments

Comments
 (0)