Skip to content

Commit

Permalink
Remove unneeded async keywords from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzatron committed Aug 4, 2024
1 parent e4a31d7 commit a7fa2ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/vitest/delegated.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ describe("Delegated geolocation", () => {
);
});

it("cannot be instantiated directly", async () => {
it("cannot be instantiated directly", () => {
const instantiateGeolocation = () => {
new (geolocation.constructor as new (p: object) => unknown)({});
};
Expand Down Expand Up @@ -293,7 +293,7 @@ describe("Delegated geolocation", () => {
selectDelegate(delegateB);
});

it("calls the error callback with a GeolocationPositionError with a code of PERMISSION_DENIED and an empty message", async () => {
it("calls the error callback with a GeolocationPositionError with a code of PERMISSION_DENIED and an empty message", () => {
expectGeolocationError(
successCallback,
errorCallback,
Expand Down Expand Up @@ -332,7 +332,7 @@ describe("Delegated geolocation", () => {
await vi.runOnlyPendingTimersAsync();
});

it("calls the error callback with a GeolocationPositionError with a code of PERMISSION_DENIED and an empty message", async () => {
it("calls the error callback with a GeolocationPositionError with a code of PERMISSION_DENIED and an empty message", () => {
expectGeolocationError(
successCallback,
errorCallback,
Expand Down

0 comments on commit a7fa2ce

Please sign in to comment.