Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): Bump @readme/eslint-config from 1.11.0 to 1.12.0 #137

Merged
merged 2 commits into from
Feb 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 24 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions test/cmds/docs.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ describe('rdme docs', () => {
return docs.run({ folder: './test/fixtures/existing-docs', key, version }).then(() => {
getMock.done();
putMock.done();
expect(true).toBeTruthy();
});
});

Expand Down Expand Up @@ -134,6 +135,7 @@ describe('rdme docs', () => {
return docs.run({ folder: './test/fixtures/new-docs', key, version }).then(() => {
getMock.done();
postMock.done();
expect(true).toBeTruthy();
});
});
});
Expand Down
10 changes: 8 additions & 2 deletions test/cmds/swagger.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,10 @@ describe('rdme swagger', () => {
.basicAuth({ user: key })
.reply(201, { _id: 1 }, { location: exampleRefLocation });

return swagger.run({ spec: './test/fixtures/swagger.json', key }).then(() => mock.done());
return swagger.run({ spec: './test/fixtures/swagger.json', key }).then(() => {
mock.done();
expect(true).toBeTruthy();
});
});

it('should PUT to the swagger api if id is provided', () => {
Expand All @@ -163,7 +166,10 @@ describe('rdme swagger', () => {
.basicAuth({ user: key })
.reply(201, { body: '{ id: 1 }' });

return swagger.run({ spec: './test/fixtures/swagger.json', key, id, version }).then(() => mock.done());
return swagger.run({ spec: './test/fixtures/swagger.json', key, id, version }).then(() => {
mock.done();
expect(true).toBeTruthy();
});
});

it('should still work with `token`', () => {
Expand Down
3 changes: 3 additions & 0 deletions test/cmds/versions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ describe('rdme versions*', () => {

return createVersion.run({ key, version }).then(() => {
mockRequest.done();
expect(true).toBeTruthy();
});
});

Expand Down Expand Up @@ -171,6 +172,7 @@ describe('rdme versions*', () => {

return deleteVersion.run({ key, version }).then(() => {
mockRequest.done();
expect(true).toBeTruthy();
});
});

Expand Down Expand Up @@ -219,6 +221,7 @@ describe('rdme versions*', () => {

return updateVersion.run({ key, version }).then(() => {
mockRequest.done();
expect(true).toBeTruthy();
});
});

Expand Down