Skip to content
Permalink
Browse files
fix(core): Fixed serialisation logic of ArtifactArchived and Activity…
…RelatedArtifactArchived
  • Loading branch information
jan-molak committed Jun 23, 2019
1 parent f96f9f8 commit 58d4536567215b225a5549479cc0d1e5dff484c3
@@ -25,4 +25,14 @@ export class ActivityRelatedArtifactArchived extends ArtifactArchived {
super(name, type, path, timestamp);
ensure('details', details, isDefined());
}

toJSON(): JSONObject {
return {
details: this.details.toJSON(),
name: this.name.toJSON(),
type: this.type.name,
path: this.path.toJSON(),
timestamp: this.timestamp.toJSON(),
};
}
}
@@ -26,4 +26,13 @@ export class ArtifactArchived extends DomainEvent {
ensure('type', type, isDefined());
ensure('path', path, isDefined());
}

toJSON(): JSONObject {
return {
name: this.name.toJSON(),
type: this.type.name,
path: this.path.toJSON(),
timestamp: this.timestamp.toJSON(),
};
}
}
@@ -21,7 +21,7 @@ import { StageCrewMember } from '../../StageCrewMember';
* import fs = require('fs');
*
* serenity.setTheStage(
* new StreamReporter(fs.createWriteStream('./debug-output.ndjson')),
* new StreamReporter(fs.createWriteStream('./events.ndjson')),
* );
*
* @extends {StageCrewMember}

0 comments on commit 58d4536

Please sign in to comment.