Skip to content

Commit

Permalink
Add await
Browse files Browse the repository at this point in the history
  • Loading branch information
KristjanESPERANTO committed Mar 12, 2023
1 parent af17308 commit 5a3f172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/electron/modules/compliments_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ describe("Compliments module", () => {
await helpers.getElement(".compliments");
const elem = await helpers.getElement(".module-content");
expect(elem).not.toBe(null);
expect(complimentsArray).toContain(await elem.textContent());
await expect(complimentsArray).toContain(await elem.textContent());
};

afterEach(async () => {
Expand Down

0 comments on commit 5a3f172

Please sign in to comment.