Skip to content

Commit

Permalink
tune test code
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Nov 26, 2023
1 parent d090392 commit 76a6f84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/simulator-e2e-specs.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,8 +354,8 @@ describe('advanced features', function () {
it('should set and get with simctrl privacy command', async function () {
// no exceptions
await expect(sim.setPermission('com.apple.Maps', 'location', 'yes')).not.to.be.rejected;
expect(await sim.setPermission('com.apple.Maps', 'location', 'no')).not.to.be.rejected;
expect(await sim.setPermission('com.apple.Maps', 'location', 'unset')).not.to.be.rejected;
await expect(sim.setPermission('com.apple.Maps', 'location', 'no')).not.to.be.rejected;
await expect(sim.setPermission('com.apple.Maps', 'location', 'unset')).not.to.be.rejected;
await expect(sim.setPermission('com.apple.Maps', 'location', 'unsupported')).to.be.rejected;
});

Expand Down

0 comments on commit 76a6f84

Please sign in to comment.