26 lines
876 B
JavaScript
26 lines
876 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Evidence = void 0;
|
|
const ValueObject_1 = require("../../../../shared/domain/ValueObject");
|
|
class Evidence extends ValueObject_1.ValueObject {
|
|
static create(props) {
|
|
return new Evidence(props);
|
|
}
|
|
static empty() {
|
|
return new Evidence({});
|
|
}
|
|
get screenshotPath() { return this.props.screenshotPath; }
|
|
get domSnapshotPath() { return this.props.domSnapshotPath; }
|
|
get httpLog() { return this.props.httpLog ?? []; }
|
|
get rawErrors() { return this.props.rawErrors ?? []; }
|
|
toJSON() {
|
|
return {
|
|
screenshotPath: this.props.screenshotPath,
|
|
domSnapshotPath: this.props.domSnapshotPath,
|
|
httpLog: this.props.httpLog,
|
|
rawErrors: this.props.rawErrors,
|
|
};
|
|
}
|
|
}
|
|
exports.Evidence = Evidence;
|