Skip to content
Snippets Groups Projects

Add tests

Merged Jan Loewe requested to merge feat-jest-tests into master
Compare and Show latest version
2 files
+ 43
11
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -6,7 +6,7 @@
import * as fc from "fast-check";
import { select, toTextArr, toTextContentArr, indexOf } from "../../util";
import { StatementMetaDataType, DCCDocument, DCCXMLElement } from "../../../src";
import { string_ISO639_1 } from "../../Arbitraries";
import { string_ISO3166_1 } from "../../Arbitraries";
const base = "/dcc:digitalCalibrationCertificate/dcc:administrativeData/dcc:statements";
const xpath = {
@@ -63,7 +63,7 @@ describe("GP_DCC_Temperature_Simplified: StatementMetaDataType", () => {
/* test for setters */
test("should set statement 3 countryCodeISO3166_1 correctly", () => {
fc.assert(
fc.property(string_ISO639_1(), (str) => {
fc.property(string_ISO3166_1(), (str) => {
// add new element to array
statement3.countryCodeISO3166_1.push(new DCCXMLElement({ _text: str }));
Loading