UNPKG

approvals

Version:

Approval Tests Library - Capturing Human Intelligence

18 lines (17 loc) 592 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const child_process_1 = require("child_process"); const osTools_1 = require("../osTools"); class ReportByOpeningTheReceivedFile { constructor() { this.name = "ReportByOpeningTheReceivedFile"; } canReportOn(_fileName) { return true; } report(_approvedFileName, receivedFileName, _options) { const openCommand = osTools_1.platform.isWindows ? "start" : "open"; const shell = `${openCommand} "${receivedFileName}"`; (0, child_process_1.exec)(shell); } }