File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 2323 "devDependencies" : {
2424 "eslint" : " ^4.4.1" ,
2525 "eslint-config-fnd" : " ^1.2.0" ,
26+ "json-diff" : " ^0.5.2" ,
2627 "node-hook" : " ^1.0.0" ,
2728 "release-util-fnd" : " ^1.0.5"
2829 }
Original file line number Diff line number Diff line change @@ -26,6 +26,13 @@ function assert_identical {
2626 fail " files \` $actual \` and \` $expected \` are not identical"
2727}
2828
29+ function assert_identical_json {
30+ actual=" ${1:? } "
31+ expected=" ${2:? } "
32+ json-diff " $expected " " $actual " || \
33+ fail " files \` $actual \` and \` $expected \` are not identical"
34+ }
35+
2936function assert_manifest {
3037 asset_path=" ${1:? } "
3138 uri=" ${2:? } "
6269begin " ./test_fingerprint"
6370 faucet
6471 assert_identical " ./dist/test-e59ff97941044f85df5297e1c302d260.txt" " ./src/test.txt"
65- assert_identical " ./dist/manifest.json" " ./expected.json"
72+ assert_identical_json " ./dist/manifest.json" " ./expected.json"
6673end
6774
6875begin " ./test_manifest_base_uri"
6976 faucet
70- assert_identical " ./dist/manifest.json" " ./expected.json"
77+ assert_identical_json " ./dist/manifest.json" " ./expected.json"
7178end
7279
7380begin " ./test_single"
You can’t perform that action at this time.
0 commit comments