zahmis 5 lat temu
rodzic
commit
4e3eb89653

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