Skip to content
This repository has been archived by the owner on Jan 7, 2021. It is now read-only.

Commit

Permalink
Updates dependencies and bumps version
Browse files Browse the repository at this point in the history
  • Loading branch information
c4milo committed Aug 17, 2016
1 parent 712cc3c commit 323e1c1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xml2json",
"version": "0.9.1",
"version": "0.9.2",
"description": "Converts xml to json and vice-versa, using node-expat.",
"repository": "git://github.com/buglabs/node-xml2json.git",
"license": "MIT",
Expand All @@ -9,15 +9,15 @@
"test": "lab -a code -v -t 93 test/test.js"
},
"dependencies": {
"hoek": "^2.14.0",
"joi": "^6.4.3",
"node-expat": "^2.3.9"
"hoek": "^4.0.1",
"joi": "^9.0.4",
"node-expat": "^2.3.15"
},
"bin": {
"xml2json": "bin/xml2json"
},
"devDependencies": {
"code": "^1.4.1",
"lab": "5.x.x"
"code": "^3.0.2",
"lab": "11.x.x"
}
}
20 changes: 10 additions & 10 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('xml2json', function () {
var result = parser.toJson(xml, { arrayNotation: true });
var json = internals.readFixture('array-notation.json');

expect(result).to.deep.equal(json);
expect(result).to.equal(json);

done();
});
Expand All @@ -36,7 +36,7 @@ describe('xml2json', function () {
var result = parser.toJson(xml, { coerce: false });
var json = internals.readFixture('coerce.json');

expect(result + '\n').to.deep.equal(json);
expect(result + '\n').to.equal(json);

done();
});
Expand All @@ -47,7 +47,7 @@ describe('xml2json', function () {
var result = parser.toJson(xml, { coerce: false });
var json = internals.readFixture('domain.json');

expect(result + '\n').to.deep.equal(json);
expect(result + '\n').to.equal(json);

done();
});
Expand All @@ -58,7 +58,7 @@ describe('xml2json', function () {
var result = parser.toJson(xml, { coerce: false, trim: true, sanitize: false });
var json = internals.readFixture('large.json');

expect(result + '\n').to.deep.equal(json);
expect(result + '\n').to.equal(json);

done();
});
Expand All @@ -69,7 +69,7 @@ describe('xml2json', function () {
var result = parser.toJson(xml, {});
var json = internals.readFixture('reorder.json');

expect(result).to.deep.equal(json);
expect(result).to.equal(json);

done();
});
Expand All @@ -80,7 +80,7 @@ describe('xml2json', function () {
var result = parser.toJson(xml, { coerce: false, trim: false });
var json = internals.readFixture('spacetext.json');

expect(result).to.deep.equal(json);
expect(result).to.equal(json);

done();
});
Expand All @@ -91,7 +91,7 @@ describe('xml2json', function () {
var result = parser.toJson(xml, {sanitize: true});
var json = internals.readFixture('xmlsanitize.json');

expect(result).to.deep.equal(json);
expect(result).to.equal(json);

done();
});
Expand All @@ -102,7 +102,7 @@ describe('xml2json', function () {
var result = parser.toJson(xml, {sanitize: true});
var json = internals.readFixture('xmlsanitize2.json');

expect(result).to.deep.equal(json);
expect(result).to.equal(json);

done();
});
Expand Down Expand Up @@ -172,7 +172,7 @@ describe('json2xml', function () {
var result = parser.toXml(json);
var xml = internals.readFixture('domain.xml');

expect(result+'\n').to.deep.equal(xml);
expect(result+'\n').to.equal(xml);

done();
});
Expand All @@ -184,7 +184,7 @@ describe('json2xml', function () {

var json = parser.toJson(xml, {object: true, arrayNotation: true});

expect(json).to.deep.equal(expectedJson);
expect(json).to.equal(expectedJson);

done();
});
Expand Down

0 comments on commit 323e1c1

Please sign in to comment.