UNPKG

@testwizard/commands-video

Version:

23 lines (16 loc) 663 B
'use strict'; const Commands = require('@testwizard/commands-core'); const Result = require('./SaveFileResult'); class SaveReferenceBitmapCommand extends Commands.CommandBase { constructor(testObject) { super(testObject, 'SaveReferenceBitmap'); } async execute(fileName) { if (fileName === undefined) throw new Error('fileName is required'); const requestObj = [fileName]; const json = await this.executeCommand(requestObj); return new Result(json, 'saveReferenceBitmap was successful', 'saveReferenceBitmap failed'); } } module.exports = SaveReferenceBitmapCommand;