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

Commit e2c2a8b

Browse files
committed
testing is overrated
1 parent 1b9f021 commit e2c2a8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"unit":{"test":{"case":[{"justText":{"$t":"blah blah"}},{"attribText":{"attrib":"das","$t":"capital"}},{"spaces":{"$t":"abc\nasdf\n a"}},{"type":"SANATISE","san":{"b":"Smith & Son","$t":"Alpha & Omega"}}]}}}
1+
{"unit":{"test":{"case":[{"justText":{"$t":"blah blah"}},{"attribText":{"attrib":"das","$t":"capital"}}]}}}

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ describe('xml2json', function () {
175175
it('A1: defaults without the option being defined', function(done) {
176176

177177
var xml = internals.readFixture('alternate-text-node-A.xml');
178-
var result = parser.toJson(xml, {});
178+
var result = parser.toJson(xml, {object: true});
179179
var json = internals.readFixture('alternate-text-node-A.json');
180180

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

0 commit comments

Comments
 (0)