UNPKG

cypress-mailosaur

Version:

Extends Cypress' cy commands that let you integrate email and SMS testing into your continuous integration process.

16 lines (15 loc) 664 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.register = void 0; const mailosaurCommands_1 = __importDefault(require("./mailosaurCommands")); const register = (Cypress) => { const mailosaurCommands = new mailosaurCommands_1.default(); const commandMap = mailosaurCommands; mailosaurCommands_1.default.cypressCommands.forEach(commandName => { Cypress.Commands.add(commandName, commandMap[commandName].bind(mailosaurCommands)); }); }; exports.register = register;