Przeglądaj źródła

remove kbn test

ryan 6 lat temu
rodzic
commit
4ad5e1595b
1 zmienionych plików z 0 dodań i 15 usunięć
  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();
-  });
-});