2
0
itizawa 5 жил өмнө
parent
commit
650b22427b

+ 20 - 0
src/test/libs/toAttayIfNot.test.js

@@ -0,0 +1,20 @@
+const toArrayFromCsv = require('../../lib/util/toArrayFromCsv');
+
+describe('Slack Util', () => {
+
+  test('post comment method exists', () => {
+    const result = toArrayFromCsv('dev,general');
+    expect(result).toStrictEqual(['dev', 'general']);
+  });
+
+  test('post 2', () => {
+    const result = toArrayFromCsv('dev');
+    expect(result).toStrictEqual(['dev']);
+  });
+
+  test('post 3', () => {
+    const result = toArrayFromCsv('');
+    expect(result).toStrictEqual(['']);
+  });
+
+});