mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 11:23:50 +00:00
refactor: allow both http and https
This commit is contained in:
committed by
Carlos Valente
parent
d175c788c5
commit
a8fe4c8e68
@@ -26,8 +26,8 @@ describe('simple tests for regex', () => {
|
||||
});
|
||||
|
||||
test('startsWithHttp', () => {
|
||||
const right = ['http://test'];
|
||||
const wrong = ['https://test', 'testing', '123.0.1'];
|
||||
const right = ['https://test', 'http://test'];
|
||||
const wrong = ['testing', '123.0.1'];
|
||||
|
||||
right.forEach((t) => {
|
||||
expect(startsWithHttp.test(t)).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user