zahmis пре 5 година
родитељ
комит
4e3eb89653
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      packages/slack/src/utils/slash-command-parser.test.ts

+ 3 - 2
packages/slack/src/utils/slash-command-parser.test.ts

@@ -24,11 +24,12 @@ describe('parse SlashCommand', () => {
 
   test('returns a GrowiCommand instance with empty growiCommandArgs', () => {
     // setup
-    const slashCommandText = '/growi search';
+    const slashCommandText = 'search';
     const slashCommand = new SlashCommandMock(slashCommandText);
 
     // when
     const result = parse(slashCommand);
+    console.log('32', result);
 
     // then
     expect(result.text).toBe(slashCommandText);
@@ -38,7 +39,7 @@ describe('parse SlashCommand', () => {
 
   test('returns a GrowiCommand instance', () => {
     // setup
-    const slashCommandText = '/growi search keyword1 keyword2';
+    const slashCommandText = 'search keyword1 keyword2';
     const slashCommand = new SlashCommandMock(slashCommandText);
 
     // when