Skip to content

Commit

Permalink
Merge pull request #196 from bookcreator/b/test-fix
Browse files Browse the repository at this point in the history
Fix for failing test
  • Loading branch information
choran committed Apr 26, 2018
2 parents 4087cc1 + 5786c50 commit 43e6fbc
Show file tree
Hide file tree
Showing 3 changed files with 558 additions and 247 deletions.
2 changes: 1 addition & 1 deletion test/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('clients', () => {
const client = new Client('foo', 'bar').usePromises();
assert.equal(true, client.promises);
client.users.list().catch(err => {
assert.equal(true, err.message.indexOf('error.list') !== -1);
assert.deepStrictEqual({ type: 'error.list' }, err.body);
done();
});
});
Expand Down
2 changes: 1 addition & 1 deletion test/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import assert from 'assert';
import {Client} from '../lib';
import nock from 'nock';

describe.only('errors', () => {
describe('errors', () => {
describe('with promises', () => {
it('should fail with ESOCKETTIMEDOUT error', () => {

Expand Down
Loading

0 comments on commit 43e6fbc

Please sign in to comment.