diff --git a/test/document-tests.spec.ts b/test/document-tests.spec.ts index fc321c9..57b552a 100644 --- a/test/document-tests.spec.ts +++ b/test/document-tests.spec.ts @@ -47,7 +47,7 @@ describe("Validated node references tests", function () { const xml = fs.readFileSync("./test/static/valid_saml.xml", "utf-8"); const doc = new xmldom.DOMParser().parseFromString(xml); const sig = new SignedXml(); - sig.getCertFromKeyInfo = SignedXml.getCertFromKeyInfo + sig.getCertFromKeyInfo = SignedXml.getCertFromKeyInfo; sig.loadSignature(sig.findSignatures(doc)[0]); const validSignature = sig.checkSignature(xml); expect(validSignature).to.be.true; @@ -74,7 +74,7 @@ describe("Validated node references tests", function () { const xml = fs.readFileSync("./test/static/valid_saml.xml", "utf-8"); const doc = new xmldom.DOMParser().parseFromString(xml); const sig = new SignedXml(); - sig.getCertFromKeyInfo = SignedXml.getCertFromKeyInfo + sig.getCertFromKeyInfo = SignedXml.getCertFromKeyInfo; sig.loadSignature(sig.findSignatures(doc)[0]); const validSignature = sig.checkSignature(xml); expect(validSignature).to.be.true; @@ -88,7 +88,7 @@ describe("Validated node references tests", function () { const xml = fs.readFileSync("./test/static/valid_saml.xml", "utf-8"); const doc = new xmldom.DOMParser().parseFromString(xml); const sig = new SignedXml(); - sig.getCertFromKeyInfo = SignedXml.getCertFromKeyInfo + sig.getCertFromKeyInfo = SignedXml.getCertFromKeyInfo; sig.loadSignature(sig.findSignatures(doc)[0]); const validSignature = sig.checkSignature(xml); expect(validSignature).to.be.true;