Skip to content

Commit d341fe5

Browse files
author
Siddharth Yadav
committed
feat: update dependency and add test data
1 parent 938e706 commit d341fe5

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,15 @@
2222
"node": ">=4.3"
2323
},
2424
"scripts": {
25-
"test": "echo \"Error: no test specified\" && exit 1"
25+
"test": "((node dereference.js -s testdata/correct.schema.json && echo \"Success: exit code $?\") && (node dereference.js -s testdata/error.schema.json || echo \"Success: exit code $?\")) && echo \"Test Passed!\""
2626
},
2727
"repository": {
2828
"type": "git",
2929
"url": "https://github.com/sedflix/json-dereference-cli-v2"
3030
},
3131
"dependencies": {
32-
"aws-sdk": "^2.1303.0",
33-
"@apidevtools/json-schema-ref-parser": "^10.0.1",
34-
"minimist": "^1.2.7",
32+
"@apidevtools/json-schema-ref-parser": "^11.9.3",
33+
"minimist": "^1.2.8",
3534
"js-yaml": "^4.1.0"
3635
}
3736
}
File renamed without changes.

testdata/error.schema.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "https://json-schema.org/draft-07/schema",
3+
"type": "object",
4+
"properties": {
5+
"test": {
6+
"$ref": "https://raw.githubusercontent.com/wrong/kubernetes-wrong-schema/master/master-standalone-strict/_definitions.json#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
7+
}
8+
}
9+
}

testdata/test.sh

Whitespace-only changes.

0 commit comments

Comments
 (0)