From a42d47e951879dce054032ed04c2189cfb70d33b Mon Sep 17 00:00:00 2001 From: nide Date: Tue, 16 Jun 2015 14:40:04 +0300 Subject: [PATCH] Good datapackage test passed (#6) --- test/all.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/all.js b/test/all.js index 7d3a693..370b22f 100644 --- a/test/all.js +++ b/test/all.js @@ -39,10 +39,11 @@ describe('validate schema', function() { "path": "data/data.csv" }] }; - var out = tools.validate(data); - // console.log(JSON.stringify(out, null, 2)); - assert.equal(out.valid, true); - assert.equal(out.errors.length, 0); + tools.validate(data).then(function(O) { + // console.log(JSON.stringify(out, null, 2)); + assert.equal(O.valid, true); + assert.equal(O.errors.length, 0); + }); }); });