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

Remove deprecated kbn test
This commit is contained in:
Dominik Prokop
2019-03-12 09:25:33 +01:00
committed by GitHub
-15
View File
@@ -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();
});
});