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

Commit 58984ec

Browse files
committed
hail mary and oy vey maria!
1 parent 9bc2cbc commit 58984ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,9 @@ describe('xml2json', function () {
176176
var data = fs.readFileSync(file);
177177
it('A: defaults without the option being defined', function(done) {
178178

179-
var result = parser.toJson(data, {reversible: true, object: true});
180-
expect(result.unit.tst.case[0].justText['$t']).to.equal('blah blah');
179+
var result = parser.toJson(data, {object: true});
180+
console.log(`${JSON.stringify(result, null, 2)}`)
181+
expect(result.tst.case[0].justText['$t']).to.equal('blah blah');
181182
expect(result.unit.tst.case[1].attribText['$t']).to.equal('capital');
182183
});
183184

0 commit comments

Comments
 (0)