Steven Fukase %!s(int64=4) %!d(string=hai) anos
pai
achega
5efc097ca7
Modificáronse 1 ficheiros con 4 adicións e 6 borrados
  1. 4 6
      packages/slack/src/utils/reshape-contents-body.test.ts

+ 4 - 6
packages/slack/src/utils/reshape-contents-body.test.ts

@@ -4,20 +4,18 @@ import { reshapeContentsBody } from './reshape-contents-body';
 describe('reshapeContentsBody', () => {
 
   describe('Markdown only', () => {
-    test('Strips out newline characters', () => {
+    test('Return the same input', () => {
       const input = '# Title  \n## Section  \nI tested this code at 12:00 AM.  \n**bold** text\nsome texts';
-      const output = '# Title  ## Section  I tested this code at 12:00 AM.  **bold** textsome texts';
 
-      expect(reshapeContentsBody(input)).toBe(output);
+      expect(reshapeContentsBody(input)).toBe(input);
     });
   });
 
   describe('Contains time but no headers', () => {
-    test('Strips newline characters', () => {
+    test('Return the same input', () => {
       const input = '12:23\nsome messages...\n12:23\nsome messages...\n12:23';
-      const output = '12:23some messages...12:23some messages...12:23';
 
-      expect(reshapeContentsBody(input)).toBe(output);
+      expect(reshapeContentsBody(input)).toBe(input);
     });
   });