@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
22 lines • 813 B
JavaScript
import { ensure, isDefined, TinyType } from 'tiny-types';
import { FileSystemLocation } from '../io/index.js';
import { Category } from './Category.js';
import { Name } from './Name.js';
export class ScenarioDetails extends TinyType {
name;
category;
location;
static fromJSON(o) {
return new ScenarioDetails(Name.fromJSON(o.name), Category.fromJSON(o.category), FileSystemLocation.fromJSON(o.location));
}
constructor(name, category, location) {
super();
this.name = name;
this.category = category;
this.location = location;
ensure('scenario name', name, isDefined());
ensure('scenario category', category, isDefined());
ensure('scenario location', location, isDefined());
}
}
//# sourceMappingURL=ScenarioDetails.js.map