Skip to content

Commit 43e6fbc

Browse files
authored
Merge pull request #196 from bookcreator/b/test-fix
Fix for failing test
2 parents 4087cc1 + 5786c50 commit 43e6fbc

File tree

3 files changed

+558
-247
lines changed

3 files changed

+558
-247
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
});

test/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import assert from 'assert';
22
import {Client} from '../lib';
33
import nock from 'nock';
44

5-
describe.only('errors', () => {
5+
describe('errors', () => {
66
describe('with promises', () => {
77
it('should fail with ESOCKETTIMEDOUT error', () => {
88

0 commit comments

Comments
 (0)