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

Commit ed899f1

Browse files
committed
explicit about sanitization
1 parent fefd888 commit ed899f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ describe('xml2json', function () {
8888
it('does xmlsanitize', function (done) {
8989

9090
var xml = internals.readFixture('xmlsanitize.xml');
91-
var result = parser.toJson(xml, {});
91+
var result = parser.toJson(xml, {sanitize: true});
9292
var json = internals.readFixture('xmlsanitize.json');
9393

9494
expect(result).to.deep.equal(json);
@@ -99,7 +99,7 @@ describe('xml2json', function () {
9999
it('does xmlsanitize of text', function (done) {
100100

101101
var xml = internals.readFixture('xmlsanitize2.xml');
102-
var result = parser.toJson(xml, {});
102+
var result = parser.toJson(xml, {sanitize: true});
103103
var json = internals.readFixture('xmlsanitize2.json');
104104

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

0 commit comments

Comments
 (0)