forked from grafana.jool/grafana-jool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
634 B
19 lines
634 B
import { isSoloRoute } from './utils';
|
|
|
|
describe('isSoloRoute', () => {
|
|
describe('when called with a solo route', () => {
|
|
it('then it should return true', () => {
|
|
expect(
|
|
isSoloRoute(
|
|
'http://localhost:3000/render/d-solo/4vEk45n7k/dash?orgId=1&from=1629329071059&to=1629350671060&panelId=5&width=1000&height=500&tz=Europe%2FStockholm'
|
|
)
|
|
).toBe(true);
|
|
});
|
|
});
|
|
|
|
describe('when called without a solo route', () => {
|
|
it('then it should return false', () => {
|
|
expect(isSoloRoute('http://localhost:3000/d/4vEk45n7k/the-variables-system?orgId=1')).toBe(false);
|
|
});
|
|
});
|
|
});
|
|
|