Skip to content

Commit

Permalink
test: update parseFromString usage (#827)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Sep 17, 2024
1 parent afaab2f commit d3bdeaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/commands/general/source-e2e-specs.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {DOMParser} from '@xmldom/xmldom';
import {DOMParser, XMLDom} from '@xmldom/xmldom';
import xpath from 'xpath';
import {APIDEMOS_CAPS} from '../../desired';
import {initSession, deleteSession} from '../../helpers/session';
Expand All @@ -23,7 +23,7 @@ describe('apidemo - source', function () {

function assertSource(source) {
source.should.exist;
const dom = new DOMParser().parseFromString(source);
const dom = new DOMParser().parseFromString(source, XMLDom.MIME_TYPE.XML_TEXT);
const nodes = xpath.select('//hierarchy', dom);
nodes.length.should.equal(1);
}
Expand Down

0 comments on commit d3bdeaf

Please sign in to comment.