@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
13 lines • 389 B
JavaScript
import { ensure, isDefined, TinyType } from 'tiny-types';
export class Description extends TinyType {
value;
static fromJSON(v) {
return new Description(v);
}
constructor(value) {
super();
ensure('value', value, isDefined());
this.value = value.split('\n').map(line => line.trim()).join('\n');
}
}
//# sourceMappingURL=Description.js.map