Skip to content
Snippets Groups Projects

Add tests

Merged Jan Loewe requested to merge feat-jest-tests into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -4,7 +4,7 @@ import { DCCDocument, DCCXMLElement } from "../src";
@@ -4,7 +4,7 @@ import { DCCDocument, DCCXMLElement } from "../src";
export function select(xpath: string, domOrDCC: JSDOM | DCCDocument): string | number | boolean | Node | Node[] {
export function select(xpath: string, domOrDCC: JSDOM | DCCDocument): string | number | boolean | Node | Node[] {
let dom = <JSDOM>domOrDCC;
let dom = <JSDOM>domOrDCC;
if (domOrDCC.hasOwnProperty.call(null, "digitalCalibrationCertificate")) {
if (domOrDCC.digitalCalibrationCertificate) {
dom = toDom(<DCCDocument>domOrDCC);
dom = toDom(<DCCDocument>domOrDCC);
}
}
Loading