fase(20): visual regression refactor
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
21
dist/modules/visual-regression/domain/entities/VisualBaseline.js
vendored
Normal file
21
dist/modules/visual-regression/domain/entities/VisualBaseline.js
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.VisualBaseline = void 0;
|
||||
const Entity_1 = require("../../../../shared/domain/Entity");
|
||||
const UniqueId_1 = require("../../../../shared/domain/UniqueId");
|
||||
class VisualBaseline extends Entity_1.Entity {
|
||||
static create(props, id) {
|
||||
return new VisualBaseline(props, id ?? UniqueId_1.UniqueId.create());
|
||||
}
|
||||
static reconstitute(props, id) {
|
||||
return new VisualBaseline(props, id);
|
||||
}
|
||||
get stateId() { return this.props.stateId; }
|
||||
get url() { return this.props.url; }
|
||||
get screenshotPath() { return this.props.screenshotPath; }
|
||||
get width() { return this.props.width; }
|
||||
get height() { return this.props.height; }
|
||||
get approvedAt() { return this.props.approvedAt; }
|
||||
get approvedBy() { return this.props.approvedBy; }
|
||||
}
|
||||
exports.VisualBaseline = VisualBaseline;
|
||||
Reference in New Issue
Block a user