testing: fix unit test

This commit is contained in:
Connor Peet 2021-02-18 18:07:03 -08:00
parent 5a0bf3751a
commit c3695af6d2
No known key found for this signature in database
GPG key ID: CF8FD2EA0DBC61BD

View file

@ -196,8 +196,8 @@ suite('Workbench - Test Results Service', () => {
id: 'some-id',
items: [{
...getInitializedMainTestCollection().getNodeById('2')!,
state: { state: TestRunState.Passed, duration: 0, messages: [] },
computedState: TestRunState.Passed,
state: { state, duration: 0, messages: [] },
computedState: state,
retired: undefined,
children: [],
}]
@ -234,7 +234,7 @@ suite('Workbench - Test Results Service', () => {
results.push(hydrated1);
const hydrated2 = makeHydrated(undefined, TestRunState.Failed);
results.push(hydrated2);
assert.deepStrictEqual(results.results, [r, hydrated1, hydrated2]);
assert.deepStrictEqual(results.results, [r, hydrated2, hydrated1]);
});
});
});