clean up files with prettier
This commit is contained in:
parent
410c4987e0
commit
733834095f
|
@ -5,7 +5,6 @@ const { isEqual } = require("lodash");
|
||||||
const { calculateElapsedTime, ensureValidJSON, getResponseContent } = require("../utils");
|
const { calculateElapsedTime, ensureValidJSON, getResponseContent } = require("../utils");
|
||||||
const { parseSkylink } = require("skynet-js");
|
const { parseSkylink } = require("skynet-js");
|
||||||
|
|
||||||
|
|
||||||
// corpusCheck runs through all the tests hosted at the resolver skylink created
|
// corpusCheck runs through all the tests hosted at the resolver skylink created
|
||||||
// by the testing-corpus repo https://github.com/SkynetLabs/testing-corpus
|
// by the testing-corpus repo https://github.com/SkynetLabs/testing-corpus
|
||||||
function corpusCheck(done) {
|
function corpusCheck(done) {
|
||||||
|
@ -21,10 +20,9 @@ function corpusCheck(done) {
|
||||||
// HNS verification
|
// HNS verification
|
||||||
hnsVerification(done, test);
|
hnsVerification(done, test);
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const uniswapBodyHash = "3965f9a7def085b3a764ddc76a528eda38d72359";
|
const uniswapBodyHash = "3965f9a7def085b3a764ddc76a528eda38d72359";
|
||||||
const uniswapMetadata = require("../fixtures/uniswapMetadata.json");
|
const uniswapMetadata = require("../fixtures/uniswapMetadata.json");
|
||||||
|
|
||||||
|
@ -111,7 +109,7 @@ async function hnsVerification(done, expected) {
|
||||||
const details = { name: expected.name, hns: expected.hns };
|
const details = { name: expected.name, hns: expected.hns };
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const portalDomain =`${process.env.SKYNET_PORTAL_API}`
|
const portalDomain = `${process.env.SKYNET_PORTAL_API}`;
|
||||||
const query = `https://${expected.hns}.hns.${portalDomain}`;
|
const query = `https://${expected.hns}.hns.${portalDomain}`;
|
||||||
const response = await got(query);
|
const response = await got(query);
|
||||||
const entry = { ...details, up: true, statusCode: response.statusCode, time: calculateElapsedTime(time) };
|
const entry = { ...details, up: true, statusCode: response.statusCode, time: calculateElapsedTime(time) };
|
||||||
|
|
Reference in New Issue