@restqa/plugin-faker
Version:
RestQA Plugin enabling the generation of fake data to be used in test scenario
17 lines (15 loc) • 459 B
JavaScript
beforeEach(() => {
jest.resetModules();
});
describe("#StepDefinition - given", () => {
test("Each steps should contains the expected value", () => {
const given = require("./index");
given.forEach((item) => {
expect(item).toHaveLength(4);
expect(typeof item[0]).toBe("string");
expect(typeof item[1]).toBe("function");
expect(typeof item[2]).toBe("string");
expect(typeof item[3]).toBe("string");
});
});
});