Bump deps (#38)

This commit is contained in:
Jaco Greeff
2020-12-30 16:34:54 +01:00
committed by GitHub
parent 2ca5e27413
commit fb58687e33
6 changed files with 421 additions and 373 deletions
+1 -1
View File
@@ -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",
+7 -1
View File
@@ -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);