Refactor header_spec to use async/await
The following discussion from !139442 (merged) should be addressed:
-
@lorenzvanherwaarden started a discussion: (+1 comment) suggestion: I think we should add
async
/await
pattern here instead.it('the status description is rendered and passed the correct data', async () => { const user = createRandomUser(); const vulnerability = { ...defaultVulnerability, state: 'confirmed', confirmedById: user.id, }; createWrapper({ vulnerability }); await waitForPromises(); expect(findStatusDescription().exists()).toBe(true); expect(findStatusDescription().props()).toEqual({ vulnerability, user, isLoadingVulnerability: false, isLoadingUser: false, isStatusBolded: false, }); });
I think we should add async/await here too and also at lines 212-215, 223-226, 235-238.
Edited by Samantha Ming