Skip to content

Commit

Permalink
Attempt to fix tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Dom Harrington committed Oct 4, 2018
1 parent 64df251 commit 012381a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/login.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const configStore = require('../lib/configstore');
describe('login command', () => {
beforeAll(() => nock.disableNetConnect());
afterAll(() => nock.cleanAll());
afterEach(() => configStore.clear());

it('should error if no project provided', done =>
login([], {}).catch(err => {
Expand Down Expand Up @@ -88,7 +89,7 @@ describe('login command', () => {

const mock = nock(config.host)
.post('/api/v1/login', { email, password, project, token })
.reply(200, { apiKey: 123 });
.reply(200, { apiKey: '123' });

return login([], { email, password, project, token }).then(() => {
mock.done();
Expand Down

0 comments on commit 012381a

Please sign in to comment.