Skip to content

Commit

Permalink
Update validate
Browse files Browse the repository at this point in the history
  • Loading branch information
eoftedal committed Aug 19, 2024
1 parent 25b74be commit 58b86c9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions repository/validate
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const currentString = JSON.stringify(current, null, 2);
if (converted != currentString) {
exitWithError("jsrepository.json is has not been converted");
}

console.log(
"Checking that jsrepository-master and jsonrepository-v2 are synced..."
);
Expand All @@ -29,6 +30,26 @@ if (convertedV2 != currentV2String) {
exitWithError("jsrepository-v2.json is has not been converted");
}

console.log(
"Checking that jsrepository-master and jsonrepository-v3 are synced..."
);
const currentV3 = require("./jsrepository-v3.json");
const convertedV3 = JSON.stringify(convert(data, true, true, true), null, 2);
const currentV3String = JSON.stringify(currentV3, null, 2);
if (convertedV3 != currentV3String) {
exitWithError("jsrepository-v3.json is has not been converted");
}

console.log(
"Checking that jsrepository-master and jsonrepository-v4 are synced..."
);
const currentV4 = require("./jsrepository-v4.json");
const convertedV4 = JSON.stringify(convert(data, true, false, true), null, 2);
const currentV4String = JSON.stringify(currentV4, null, 2);
if (convertedV4 != currentV4String) {
exitWithError("jsrepository-v4.json is has not been converted");
}

console.log("Done");

console.log("Validting repo format...");
Expand Down

0 comments on commit 58b86c9

Please sign in to comment.