UNPKG

flagpole

Version:

Simple and fast DOM integration, headless or headful browser, and REST API testing framework.

34 lines 1.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FfprobeResponse = void 0; const jpath_1 = require("../json/jpath"); const helpers_1 = require("../helpers"); const jsonresponse_1 = require("../json/jsonresponse"); class FfprobeResponse extends jsonresponse_1.JsonResponse { constructor() { super(...arguments); this.find = (path) => jpath_1.jpathFind(this, path); this.findAll = (path) => jpath_1.jpathFindAll(this, path); } get responseTypeName() { return "FFprobe Data"; } get responseType() { return "ffprobe"; } get jsonBody() { var _a; return helpers_1.wrapAsValue(this.context, (_a = this.jsonDoc) === null || _a === void 0 ? void 0 : _a.root, "FFprobe Data"); } init(httpResponse) { super.init(httpResponse); try { this.jsonDoc = new jpath_1.JsonDoc(httpResponse.json); } catch (ex) { this.context.logFailure("Error parsing ffprobe output.", ex); } } } exports.FfprobeResponse = FfprobeResponse; //# sourceMappingURL=ffproberesponse.js.map