Skip to content

Commit

Permalink
Update getIMSC1Document.js
Browse files Browse the repository at this point in the history
  • Loading branch information
littlespex authored Jun 20, 2024
1 parent f0688a6 commit 8a887a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/js/utils/getIMSC1Document.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fs from "node:fs/promises";
import { fromXML } from "../../../main/js/doc.js";
import { creareSAXParser } from "../../../main/js/parser.js";

Check failure on line 3 in src/test/js/utils/getIMSC1Document.js

View workflow job for this annotation

GitHub Actions / pull_request_ci

'creareSAXParser' is defined but never used

const errorHandler = {
info: function (msg) {
Expand All @@ -18,5 +19,5 @@ const errorHandler = {

export async function getIMSC1Document(url, metadataHandler) {
const contents = await fs.readFile(url, "utf8");
return fromXML(contents, errorHandler, metadataHandler);
return fromXML(contents, errorHandler, metadataHandler, createSAXParser());

Check failure on line 22 in src/test/js/utils/getIMSC1Document.js

View workflow job for this annotation

GitHub Actions / pull_request_ci

'createSAXParser' is not defined
}

0 comments on commit 8a887a9

Please sign in to comment.