mirror of
https://github.com/unmojang/node-minecraft-protocol.git
synced 2025-09-29 14:13:45 -04:00
update minecraft-wrap : wrap.download now automatically checks the md5 of the file before and after downloading
This commit is contained in:
parent
8d9f37c2ba
commit
9e0cecfc6f
@ -37,7 +37,7 @@
|
|||||||
"mocha": "~2.3.3",
|
"mocha": "~2.3.3",
|
||||||
"power-assert": "^1.0.0",
|
"power-assert": "^1.0.0",
|
||||||
"source-map-support": "^0.3.2",
|
"source-map-support": "^0.3.2",
|
||||||
"minecraft-wrap": "~0.5.4"
|
"minecraft-wrap": "~0.6.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"babel-runtime": "^5.4.4",
|
"babel-runtime": "^5.4.4",
|
||||||
|
10
test/test.js
10
test/test.js
@ -213,15 +213,7 @@ mc.supportedVersions.forEach(function(supportedVersion){
|
|||||||
describe("client "+version.minecraftVersion, function() {
|
describe("client "+version.minecraftVersion, function() {
|
||||||
this.timeout(10 * 60 * 1000);
|
this.timeout(10 * 60 * 1000);
|
||||||
|
|
||||||
before(function(done){
|
before(download.bind(null,version.minecraftVersion,MC_SERVER_JAR));
|
||||||
console.log(MC_SERVER_JAR);
|
|
||||||
fs.exists(MC_SERVER_JAR,function(exists){
|
|
||||||
if(exists)
|
|
||||||
done();
|
|
||||||
else
|
|
||||||
download(version.minecraftVersion,MC_SERVER_JAR,done);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
afterEach(function(done) {
|
afterEach(function(done) {
|
||||||
wrap.stopServer(function(err){
|
wrap.stopServer(function(err){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user