add "real" mapblock test

This commit is contained in:
BuckarooBanzay 2020-10-16 11:57:02 +02:00
parent 6e97ba4398
commit 1ad92fb638
2 changed files with 8 additions and 0 deletions

View File

@ -15,4 +15,12 @@ describe('mapblockparser', function() {
assert.equal(mapblock.node_id_mapping["some:stuff"] >= 0, false);
});
});
it("does not crash", function(){
const data = fs.readFileSync("./test/testdata/pandorabox1.bin");
return mapblockparser.parse(data)
.then(function(mapblock){
console.log(mapblock);
});
});
});

BIN
test/testdata/pandorabox1.bin vendored Normal file

Binary file not shown.