mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00:00
More test cases
This commit is contained in:
parent
aa369760ad
commit
b2c24fab4f
@ -16,6 +16,8 @@ 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);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user