mirror of
https://github.com/pezkuwichain/phishing.git
synced 2026-06-17 20:31:04 +00:00
Bump deps (#38)
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/phishing#readme",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.5",
|
||||
"@polkadot/x-fetch": "^5.1.1"
|
||||
"@polkadot/x-fetch": "^5.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/js-yaml": "^3.12.5",
|
||||
|
||||
@@ -22,13 +22,19 @@ describe('checkIfDenied', (): void => {
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true when host in list (www-prefix)', async (): Promise<void> => {
|
||||
expect(
|
||||
await checkIfDenied('www.polkadotfund.com')
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true when host in list (protocol)', async (): Promise<void> => {
|
||||
expect(
|
||||
await checkIfDenied('https://polkawallets.site')
|
||||
).toEqual(true);
|
||||
});
|
||||
|
||||
it('returns true when host in list (path)', async (): Promise<void> => {
|
||||
it('returns true when host in list (protocol + path)', async (): Promise<void> => {
|
||||
expect(
|
||||
await checkIfDenied('https://polkawallets.site/something/index.html')
|
||||
).toEqual(true);
|
||||
|
||||
Reference in New Issue
Block a user