fix require paths

This commit is contained in:
Karol Wypchlo 2020-09-18 12:40:49 +02:00
parent 7335dd4dbf
commit c561f3e568
1 changed files with 9 additions and 3 deletions

View File

@ -538,7 +538,7 @@ function dappExampleCheck(done) {
} }
const developMomentumBodyHash = "53b44a9d3cfa9b3d66ce5c29976f4383725d3652"; const developMomentumBodyHash = "53b44a9d3cfa9b3d66ce5c29976f4383725d3652";
const developMomentumMetadata = require("./fixtures/developMomentumMetadata.json"); const developMomentumMetadata = require("../fixtures/developMomentumMetadata.json");
// developMomentumCheck returns the result of trying to download the skylink // developMomentumCheck returns the result of trying to download the skylink
// for the Develop Momentum Application // for the Develop Momentum Application
@ -726,7 +726,7 @@ function skyBinRedirectCheck(done) {
} }
const skyGalleryBodyHash = "077e54054748d278114f1870f8045a162eb73641"; const skyGalleryBodyHash = "077e54054748d278114f1870f8045a162eb73641";
const skyGalleryMetadata = require("./fixtures/skygalleryMetadata.json"); const skyGalleryMetadata = require("../fixtures/skygalleryMetadata.json");
// skyGalleryCheck returns the result of trying to download the skylink for the SkyGallery Application. // skyGalleryCheck returns the result of trying to download the skylink for the SkyGallery Application.
function skyGalleryCheck(done) { function skyGalleryCheck(done) {
@ -793,7 +793,7 @@ function uncensoredLibraryCheck(done) {
} }
const uniswapBodyHash = "3965f9a7def085b3a764ddc76a528eda38d72359"; const uniswapBodyHash = "3965f9a7def085b3a764ddc76a528eda38d72359";
const uniswapMetadata = require("./fixtures/uniswapMetadata.json"); const uniswapMetadata = require("../fixtures/uniswapMetadata.json");
// uniswapCheck returns the result of trying to download the skylink // uniswapCheck returns the result of trying to download the skylink
// for the Uniswap Application // for the Uniswap Application
@ -917,6 +917,12 @@ function skylinkVerification(done, { name, skylink, bodyHash, metadata }) {
const currentMetadata = metadataHeader && JSON.parse(metadataHeader); const currentMetadata = metadataHeader && JSON.parse(metadataHeader);
if (!isEqual(currentMetadata, metadata)) { if (!isEqual(currentMetadata, metadata)) {
entry.up = false; entry.up = false;
console.log(metadata);
console.log(currentMetadata);
console.log(metadataHeader);
console.log(response.header);
info.metadata = detailedDiff(metadata, currentMetadata); info.metadata = detailedDiff(metadata, currentMetadata);
} }