Skip to content

Commit 7a6e06b

Browse files
committed
oa test t4
1 parent 4a04c68 commit 7a6e06b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/test/suite/next_oai_validation.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ suite('NEXT CM OpenApi Schema Validation', () => {
1212

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

15-
const reqBody: unknown = {
15+
const reqBody = {
1616
"address": "10.145.10.1",
1717
"device_password": "admin",
1818
"device_user": "admin",
@@ -25,7 +25,7 @@ suite('NEXT CM OpenApi Schema Validation', () => {
2525
const req: OpenApiRequest = {
2626
method: "POST",
2727
route: "/api/device/v1/inventory",
28-
body: reqBody as unknown
28+
body: reqBody
2929
};
3030

3131
// const openApiValidator = new OpenApiValidator({

tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@
2424
},
2525
"include": [
2626
"src/**/*"
27-
]
27+
],
28+
"exclude": [
29+
"src/test/**/*"
30+
]
2831
}

0 commit comments

Comments
 (0)