⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
grafana
/
public
/
app
/
routes
/
View File Name :
utils.test.ts
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); }); it('then it should return true for a dashboard-solo route', () => { expect( isSoloRoute( 'http://localhost:3000/render/dashboard-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); }); }); });