From 4b660180322188784a4bd01bdc1b1b57a25298bd Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sat, 20 Feb 2021 03:59:21 -0500 Subject: [PATCH] add test --- package.json | 5 ++--- test.js | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 test.js diff --git a/package.json b/package.json index 085b691..d5debf5 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "nbt-dump": "./index.js" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "node test.js" }, "repository": { "type": "git", @@ -29,7 +29,6 @@ }, "homepage": "https://github.com/extremeheat/nbt-dump#readme", "dependencies": { - "prismarine-nbt": "github:extremeheat/prismarine-nbt#le", - "protodef": "github:extremeheat/node-protodef#new" + "prismarine-nbt": "github:extremeheat/prismarine-nbt#le" } } diff --git a/test.js b/test.js new file mode 100644 index 0000000..96e1788 --- /dev/null +++ b/test.js @@ -0,0 +1,4 @@ +const cp = require('child_process') + +cp.execSync(`node index.js file.nbt`, { stdio: 'inherit' }) +console.log('✔ Done') \ No newline at end of file