Skip to content

Commit

Permalink
Made getZoomScale tests prompts more specific.
Browse files Browse the repository at this point in the history
  • Loading branch information
aldrin312 committed Dec 20, 2024
1 parent 7ac1c3a commit 8d98688
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions other/zoomUtils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { describe, it, expect } from "vitest";
import { getZoomScale } from "./zoomUtils";

describe("getZoomScale", () => {
it("should return with maximum zoon scale", () => {
it("should return maximum zoom scale when player is very small", () => {
const result = getZoomScale({
minZoom: 1,
maxZoom: 3,
Expand All @@ -12,10 +12,10 @@ describe("getZoomScale", () => {
expect(result).toBe(3);
});

it("should return with minimum zoom scale", () => {
it("should return minimum zoom scale when player is very large", () => {
const result = getZoomScale({
minZoom: 1,
maxZoom: 2,
maxZoom: 3,
stageScale: 1,
playerRadius: 100,
});
Expand Down

0 comments on commit 8d98688

Please sign in to comment.