Skip to content

Commit

Permalink
chore: drop support for oas command (#448)
Browse files Browse the repository at this point in the history
* chore: uninstall oas

* chore: deprecate `oas` command

* chore: PR feedback

Co-Authored-By: Jon Ursenbach <[email protected]>

* refactor: reject promise, update test

Co-authored-by: Jon Ursenbach <[email protected]>
  • Loading branch information
kanadgupta and erunion authored Mar 7, 2022
1 parent f05d8f1 commit 4d42700
Show file tree
Hide file tree
Showing 5 changed files with 2,602 additions and 1,354 deletions.
4 changes: 2 additions & 2 deletions __tests__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Versions
Other useful commands
$ rdme oas Helpful OpenAPI generation tooling.
$ rdme oas Helpful OpenAPI generation tooling. [inactive]
$ rdme open Open your current ReadMe project in the browser.
Run rdme help <command> for help with a specific command.
Expand Down Expand Up @@ -161,7 +161,7 @@ Versions
Other useful commands
$ rdme oas Helpful OpenAPI generation tooling.
$ rdme oas Helpful OpenAPI generation tooling. [inactive]
$ rdme open Open your current ReadMe project in the browser.
Run rdme help <command> for help with a specific command.
Expand Down
6 changes: 2 additions & 4 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,7 @@ describe('cli', () => {
conf.delete('apiKey');
});

it('should not error with `rdme oas` arguments passed in', () => {
expect(() => {
return cli(['oas', 'endpoint']);
}).not.toThrow();
it('should error with `rdme oas` arguments passed in', async () => {
await expect(cli(['oas', 'endpoint'])).rejects.toThrow(/.*/);
});
});
Loading

0 comments on commit 4d42700

Please sign in to comment.