"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("./utils");
test("Should retrieve content when file is correct", () => {
    expect((0, utils_1.getContent)("Employee")).toBeTruthy;
});
test("Should fail when file does not exists", () => {
    expect(() => {
        (0, utils_1.getContent)("Other");
    }).toThrow("An error ocurred fetching file");
});
test("Should replace text in brackets by variables in data", () => {
    let text = "This is some [name] in a [entryDate]";
    const _data = [
        { name: "Test" },
        { entryDate: "12/12/2022" },
    ];
    text = (0, utils_1.replaceAssesmentData)(_data, text);
    expect(text).toContain("This is some Test in a 12/12/2022");
});
//# sourceMappingURL=index.test.js.map