Skip to content

Commit a8c3594

Browse files
committed
Add test
1 parent 0801030 commit a8c3594

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/server.test.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,21 @@ test('Test parseHostname', (t: ExecutionContext) => {
1919
},
2020
]
2121
);
22+
t.deepEqual(
23+
server.parseHostname({
24+
hostname: 'www.example.com',
25+
}),
26+
[
27+
{
28+
branchOrRef: 'main',
29+
siteId: 'default',
30+
},
31+
{
32+
branchOrRef: 'master',
33+
siteId: 'default',
34+
},
35+
]
36+
);
2237
t.deepEqual(
2338
server.parseHostname({
2439
hostname: '0d60edf.localhost',

0 commit comments

Comments
 (0)