UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

17 lines 559 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Description = void 0; const tiny_types_1 = require("tiny-types"); class Description extends tiny_types_1.TinyType { value; static fromJSON(v) { return new Description(v); } constructor(value) { super(); (0, tiny_types_1.ensure)('value', value, (0, tiny_types_1.isDefined)()); this.value = value.split('\n').map(line => line.trim()).join('\n'); } } exports.Description = Description; //# sourceMappingURL=Description.js.map