codeceptjs-saucehelper
Version:
Sauce Labs Result Publisher for Codecept JS tests
24 lines (18 loc) • 639 B
JavaScript
;
const SauceHelper = require("../index");
describe("Unknown helper", () => {
let helper;
beforeEach(() => {
helper = new SauceHelper({ require: "codeceptjs-saucehelper" });
});
it("throws an error on test passing", () => {
expect(() => {
helper._passed({});
}).toThrow("No matching helper found. Supported helpers: WebDriver/Appium/WebDriverIO");
});
it("throws an error on test failing", () => {
expect(() => {
helper._failed({});
}).toThrow("No matching helper found. Supported helpers: WebDriver/Appium/WebDriverIO");
});
});