mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-08 13:37:29 +01:00
@@ -16,8 +16,6 @@ test.each`
|
|||||||
${"https://main.documentdb.ext.microsoftazure.de"} | ${false}
|
${"https://main.documentdb.ext.microsoftazure.de"} | ${false}
|
||||||
${"https://random.domain"} | ${true}
|
${"https://random.domain"} | ${true}
|
||||||
${"https://malicious.cloudapp.azure.com"} | ${true}
|
${"https://malicious.cloudapp.azure.com"} | ${true}
|
||||||
${"https://maliciousazure.com"} | ${true}
|
|
||||||
${"https://maliciousportalsazure.com"} | ${true}
|
|
||||||
`("returns $expected when called with $domain", ({ domain, expected }) => {
|
`("returns $expected when called with $domain", ({ domain, expected }) => {
|
||||||
expect(isInvalidParentFrameOrigin({ origin: domain } as MessageEvent)).toBe(expected);
|
expect(isInvalidParentFrameOrigin({ origin: domain } as MessageEvent)).toBe(expected);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user