Skip to content

Commit 1249b0d

Browse files
fix: change yaml and comments in testcase
Signed-off-by: Fredrik Nordlander <fredrik.nordlander@digg.se>
1 parent a06de58 commit 1249b0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/unit/api/endpointValidation.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jest.mock('../../../src/routes/validate.js', () => ({
6161
}
6262
const invalidPathsScalar =
6363
/paths:\s*\n\s*\/\s*(\n|$)/m.test(raw);
64+
6465
// Violation (synthetic)
6566
if (invalidPathsScalar) {
6667
if (strict) {
@@ -177,7 +178,7 @@ openapi: 3.0.0
177178
info:
178179
version: 1.0.0
179180
paths:
180-
FORBIDDEN_RULE: true
181+
/
181182
`;
182183
const res = await request(app)
183184
.post('/api/v1/validation/validatespec')

0 commit comments

Comments
 (0)