Skip to content

Commit

Permalink
add test to simulate a change from pending to prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
TonySpegel committed Aug 1, 2024
1 parent 1973ab8 commit 9850aec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/test/controllers/permissions_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,10 @@ suite('PermissionsController', () => {
assert.equal(element.shadowRoot!.textContent, 'pending');
});

test('observes changes to permission');
test('changes from pending to prompt', async () => {
await new Promise((resolve) => setTimeout(resolve, 0));

assert.equal(controller.state, 'prompt');
assert.equal(element.shadowRoot!.textContent, 'prompt');
});
});

0 comments on commit 9850aec

Please sign in to comment.