Skip to content

Commit

Permalink
Improve test descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Aug 15, 2023
1 parent e2c2365 commit e97959f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/jest/geolocation/get-current-position.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ describe("Geolocation.getCurrentPosition()", () => {
geolocation = createGeolocation({ locationServices });
});

describe("when the permission handler does not change the state", () => {
describe("when the permission request handler does not change the state", () => {
beforeEach(() => {
handlePermissionRequest.mockImplementation(
async (): Promise<StdPermissionState> => PROMPT,
Expand Down Expand Up @@ -420,7 +420,7 @@ describe("Geolocation.getCurrentPosition()", () => {
});
});

describe("when the permission handler denies the permission", () => {
describe("when the permission request handler denies the permission", () => {
beforeEach(() => {
handlePermissionRequest.mockImplementation(
async (): Promise<StdPermissionState> => DENIED,
Expand Down Expand Up @@ -449,7 +449,7 @@ describe("Geolocation.getCurrentPosition()", () => {
});
});

describe("when then permission handler grants the permission", () => {
describe("when then permission request handler grants the permission", () => {
beforeEach(() => {
handlePermissionRequest.mockImplementation(
async (): Promise<StdPermissionState> => GRANTED,
Expand Down

0 comments on commit e97959f

Please sign in to comment.