Просмотр исходного кода

Merge pull request #15930 from ryantxu/remove-kbn-test

Remove deprecated kbn test
Dominik Prokop 6 лет назад
Родитель
Сommit
6d87e82151
1 измененных файлов с 0 добавлено и 15 удалено
  1. 0 15
      public/app/core/specs/kbn.test.ts

+ 0 - 15
public/app/core/specs/kbn.test.ts

@@ -1,15 +0,0 @@
-import kbn from '../utils/kbn';
-
-describe('stringToJsRegex', () => {
-  it('should parse the valid regex value', () => {
-    const output = kbn.stringToJsRegex('/validRegexp/');
-    expect(output).toBeInstanceOf(RegExp);
-  });
-
-  it('should throw error on invalid regex value', () => {
-    const input = '/etc/hostname';
-    expect(() => {
-      kbn.stringToJsRegex(input);
-    }).toThrow();
-  });
-});