From 40ca7a1c9046e394b8f690377a258d714d344616 Mon Sep 17 00:00:00 2001 From: Radu Mocanu Date: Mon, 12 Feb 2024 17:29:05 +0200 Subject: [PATCH] test: fix tests --- src/commands/init.ts | 1 - test/services/codex.test.ts | 34 +++++++++++++++++----------------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/src/commands/init.ts b/src/commands/init.ts index ad1e55b..423ffda 100644 --- a/src/commands/init.ts +++ b/src/commands/init.ts @@ -50,6 +50,5 @@ export default class Init extends BaseCommand { } else { ui.info('bailing out') } - return } } diff --git a/test/services/codex.test.ts b/test/services/codex.test.ts index d16bad6..232d8f4 100644 --- a/test/services/codex.test.ts +++ b/test/services/codex.test.ts @@ -267,14 +267,14 @@ describe('codex tests', async () => { --- swagger.json +++ swagger.json @@ -2,7 +2,8 @@ - "swagger": "2.0", - "info": { - "description": "Some description", - "version": "5.0", -- "title": "CLOUD API" -+ "${swagger.sdkPatchLevelAttr}": 1, -+ "title": "CLOUD API changed" - } + "swagger": "2.0", + "info": { + "description": "Some description", + "version": "5.0", +- "title": "CLOUD API" ++ "${swagger.sdkPatchLevelAttr}": 1, ++ "title": "CLOUD API changed" + } } \\ No newline at end of file ` @@ -323,15 +323,15 @@ describe('codex tests', async () => { --- swagger.json +++ swagger.json @@ -2,8 +2,8 @@ - "swagger": "2.0", - "info": { - "description": "Some description", - "version": "5.0", -- "${swagger.sdkPatchLevelAttr}": 1, -- "title": "CLOUD API" -+ "${swagger.sdkPatchLevelAttr}": 2, -+ "title": "CLOUD API changed" - } + "swagger": "2.0", + "info": { + "description": "Some description", + "version": "5.0", +- "${swagger.sdkPatchLevelAttr}": 1, +- "title": "CLOUD API" ++ "${swagger.sdkPatchLevelAttr}": 2, ++ "title": "CLOUD API changed" + } } \\ No newline at end of file `