Event Generator now shows data in fixed time mode (#4883)

* fixed issue and added tests
* exclude leaky test
* ignore case when looking for testing instructions
This commit is contained in:
Scott Bell
2022-03-21 23:37:49 +01:00
committed by GitHub
parent 0df33730f7
commit 28d5d72834
5 changed files with 14 additions and 8 deletions

View File

@ -35,6 +35,7 @@ describe('the plugin', () => {
telemetry: {
duration: 0
},
options: {},
type: 'eventGenerator'
};
@ -61,7 +62,13 @@ describe('the plugin', () => {
});
});
it("supports requests", async () => {
it("supports requests without start/end defined", async () => {
const telemetry = await openmct.telemetry.request(mockDomainObject);
expect(telemetry[0].message).toContain('CC: Eagle, Houston');
});
it("supports requests with arbitrary start time in the past", async () => {
mockDomainObject.options.start = 100000000000; // Mar 03 1973
const telemetry = await openmct.telemetry.request(mockDomainObject);
expect(telemetry[0].message).toContain('CC: Eagle, Houston');
});