Skip to content

Commit

Permalink
Added tests, fleshed out edge cases with origin formats
Browse files Browse the repository at this point in the history
  • Loading branch information
gratcliff committed Jan 23, 2020
1 parent c8bb437 commit 61319a0
Show file tree
Hide file tree
Showing 4 changed files with 305 additions and 218 deletions.
4 changes: 2 additions & 2 deletions __tests__/__snapshots__/oas.test.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`operation() should return a default when no operation 1`] = `
exports[`class.Oas operation() should return a default when no operation 1`] = `
Operation {
"method": "get",
"oas": Oas {
Expand All @@ -11,7 +11,7 @@ Operation {
}
`;

exports[`operation.prepareSecurity() should work for petstore 1`] = `
exports[`class.operation prepareSecurity() should work for petstore 1`] = `
Object {
"OAuth2": Array [
Object {
Expand Down
3 changes: 3 additions & 0 deletions __tests__/fixtures/multiple-securities.json
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@
},
{
"oauthDiff": ["write:things", "read:things"]
},
{
"apiKeyScheme": []
}
],
"summary": "second and does not show security",
Expand Down
Loading

0 comments on commit 61319a0

Please sign in to comment.