mirror of
https://github.com/grafana/grafana.git
synced 2025-01-10 08:03:58 -06:00
remove kbn test
This commit is contained in:
parent
304912f9b4
commit
4ad5e1595b
@ -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();
|
||||
});
|
||||
});
|
Loading…
Reference in New Issue
Block a user