fase(5): findings module complete
Some checks failed
ABE Exploratory Testing / explore (push) Has been cancelled
Some checks failed
ABE Exploratory Testing / explore (push) Has been cancelled
This commit is contained in:
25
dist/modules/findings/domain/value-objects/Evidence.js
vendored
Normal file
25
dist/modules/findings/domain/value-objects/Evidence.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
"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;
|
||||
Reference in New Issue
Block a user