Skip to content

Commit

Permalink
oa test t4
Browse files Browse the repository at this point in the history
  • Loading branch information
DumpySquare committed Dec 12, 2022
1 parent 4a04c68 commit 7a6e06b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/test/suite/next_oai_validation.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ suite('NEXT CM OpenApi Schema Validation', () => {

test('simple validate', async () => {

const reqBody: unknown = {
const reqBody = {
"address": "10.145.10.1",
"device_password": "admin",
"device_user": "admin",
Expand All @@ -25,7 +25,7 @@ suite('NEXT CM OpenApi Schema Validation', () => {
const req: OpenApiRequest = {
method: "POST",
route: "/api/device/v1/inventory",
body: reqBody as unknown
body: reqBody
};

// const openApiValidator = new OpenApiValidator({
Expand Down
5 changes: 4 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@
},
"include": [
"src/**/*"
]
],
"exclude": [
"src/test/**/*"
]
}

0 comments on commit 7a6e06b

Please sign in to comment.