Skip to content
Snippets Groups Projects

Add tests

Merged Jan Loewe requested to merge feat-jest-tests into master
2 files
+ 1
27
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -26,7 +26,7 @@ describe("DccSoftwareType", () => {
beforeEach(async () => {
({ dcc, dom } = await xmlEnv.recreateEnv());
dccSoftware = dcc.digitalCalibrationCertificate.administrativeData.dccSoftware;
software = dccSoftware.software[0]; /* TODO: evtl. nicht nur mit ersten Index testen */
software = dccSoftware.software[0];
});
test("should get correct software name content from XML", () => {
@@ -38,30 +38,4 @@ describe("DccSoftwareType", () => {
test("should get correct software release version of software from XML", () => {
expect(software.release._text).toBe(select(xpath.software.release, dom));
});
/*
test("should get correct software type of software from XML", () => {
console.log(software);
if (select(xpath.software.type, dom)) {
expect(software.type._text).toBe(select(xpath.software.type, dom));
}
});
*/
/* TODO: description testen*/
/*
test("should get correct software reftype ...", () => {
console.log(select(xpath.software._refType, dom));
if (select(xpath.software._refType, dom) != "") {
expect(software._attr.refType).toBe(select(xpath.software._refType, dom));
}
});
test("should get correct software id ...", () => {
console.log(select(xpath.software._id, dom));
if (select(xpath.software._id, dom) != "") {
expect(software._attr.id).toBe(select(xpath.software._id, dom));
}
});*/
});
Loading