Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat committed Feb 20, 2021
1 parent 5f5fdd8 commit 4b66018
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"nbt-dump": "./index.js"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node test.js"
},
"repository": {
"type": "git",
Expand All @@ -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"
}
}
4 changes: 4 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const cp = require('child_process')

cp.execSync(`node index.js file.nbt`, { stdio: 'inherit' })
console.log('✔ Done')

0 comments on commit 4b66018

Please sign in to comment.