Adjust sort rewrite (newline) (#43)

* Adjust sort rewrite (newline)

* Updat js-yaml
This commit is contained in:
Jaco Greeff
2021-01-06 12:18:42 +01:00
committed by GitHub
parent ab30e9c33e
commit 4cf633a0c2
5 changed files with 90 additions and 90 deletions
+2 -2
View File
@@ -17,7 +17,7 @@
"@polkadot/x-fetch": "^5.2.3"
},
"devDependencies": {
"@types/js-yaml": "^3.12.5",
"js-yaml": "^3.14.1"
"@types/js-yaml": "^4.0.0",
"js-yaml": "^4.0.0"
}
}
+2 -2
View File
@@ -2,7 +2,7 @@
// SPDX-License-Identifier: Apache-2.0
import fs from 'fs';
import { safeLoad } from 'js-yaml';
import { load as yamlParse } from 'js-yaml';
import { fetch } from '@polkadot/x-fetch';
@@ -37,7 +37,7 @@ describe('crosscheck', (): void => {
beforeAll(async (): Promise<void> => {
ours = (await retrieveHostList()).deny;
scamDb = safeLoad(await (await fetch(CRYPTOSCAM)).text()) as CryptoScamEntry[];
scamDb = yamlParse(await (await fetch(CRYPTOSCAM)).text()) as CryptoScamEntry[];
});
it('has all the relevant entries from CryptoScamDb', (): void => {