update isBetween docs. Remove .js imports

This commit is contained in:
flx-sta 2024-09-04 20:30:46 -07:00
parent be2d9d90b8
commit aadc0a8576
2 changed files with 6 additions and 6 deletions

View File

@ -1,8 +1,8 @@
import { Species } from "#app/enums/species"; import { Species } from "#app/enums/species";
import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest"; import { afterEach, beforeAll, beforeEach, describe, expect, it } from "vitest";
import GameManager from "../utils/gameManager"; import GameManager from "../utils/gameManager";
import { PokeballType } from "#app/enums/pokeball.js"; import { PokeballType } from "#app/enums/pokeball";
import BattleScene from "#app/battle-scene.js"; import BattleScene from "#app/battle-scene";
describe("Spec - Pokemon", () => { describe("Spec - Pokemon", () => {
let phaserGame: Phaser.Game; let phaserGame: Phaser.Game;

View File

@ -585,11 +585,11 @@ export function getLocalizedSpriteKey(baseKey: string) {
} }
/** /**
* Check if a number is between two other numbers * Check if a number is **inclusive** between two numbers
* @param num the number to check * @param num the number to check
* @param min the minimum value * @param min the minimum value (included)
* @param max the maximum value * @param max the maximum value (included)
* @returns true if number is between min and max * @returns true if number is **inclusive** between min and max
*/ */
export function isBetween(num: number, min: number, max: number): boolean { export function isBetween(num: number, min: number, max: number): boolean {
return num >= min && num <= max; return num >= min && num <= max;