UNPKG

@serenity-js/core

Version:

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

25 lines (21 loc) 763 B
import type { JSONObject} from 'tiny-types'; import { TinyType } from 'tiny-types'; import { FileSystemLocation } from '../io'; import { CorrelationId } from './CorrelationId'; import { Name } from './Name'; export class TestSuiteDetails extends TinyType { static fromJSON(o: JSONObject): TestSuiteDetails { return new TestSuiteDetails( Name.fromJSON(o.name as string), FileSystemLocation.fromJSON(o.location as JSONObject), CorrelationId.fromJSON(o.correlationId as string), ); } constructor( public readonly name: Name, public readonly location: FileSystemLocation, public readonly correlationId: CorrelationId = CorrelationId.create(), ) { super(); } }