From b2cb29c6d61e58c98dc3ab209aebb36fa1b7b275 Mon Sep 17 00:00:00 2001 From: Sebastien Colladon Date: Thu, 16 Dec 2021 10:19:39 +0100 Subject: [PATCH] fix: bot metadata type when only botVersion is added --- __tests__/unit/lib/service/botHandler.test.js | 4 ++-- src/service/botHandler.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/__tests__/unit/lib/service/botHandler.test.js b/__tests__/unit/lib/service/botHandler.test.js index 8bcd6bd52..9ba4c506b 100644 --- a/__tests__/unit/lib/service/botHandler.test.js +++ b/__tests__/unit/lib/service/botHandler.test.js @@ -45,7 +45,7 @@ describe('test BotHandler', () => { ) handler.handle() expect(testContext.work.diffs.package).toHaveProperty( - 'bots', + 'Bot', new Set(['TestBot']) ) }) @@ -62,7 +62,7 @@ describe('test BotHandler', () => { ) handler.handle() expect(testContext.work.diffs.package).toHaveProperty( - 'bots', + 'Bot', new Set(['TestBot']) ) }) diff --git a/src/service/botHandler.js b/src/service/botHandler.js index dac4b1b94..e6011a4f2 100644 --- a/src/service/botHandler.js +++ b/src/service/botHandler.js @@ -2,7 +2,7 @@ const WaveHandler = require('./waveHandler') const path = require('path') -const BOT_TYPE = 'bots' +const BOT_TYPE = 'Bot' const BOT_EXTENSION = 'bot' class BotHandler extends WaveHandler {