From 4ad5e1595b50332232e4c01f0be1e25835f6b346 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 11 Mar 2019 21:07:10 -0700 Subject: [PATCH] remove kbn test --- public/app/core/specs/kbn.test.ts | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 public/app/core/specs/kbn.test.ts diff --git a/public/app/core/specs/kbn.test.ts b/public/app/core/specs/kbn.test.ts deleted file mode 100644 index c97e2e1101a..00000000000 --- a/public/app/core/specs/kbn.test.ts +++ /dev/null @@ -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(); - }); -});