itizawa 5 лет назад
Родитель
Сommit
650b22427b
1 измененных файлов с 20 добавлено и 0 удалено
  1. 20 0
      src/test/libs/toAttayIfNot.test.js

+ 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(['']);
+  });
+
+});