Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
502 B
Text
16 lines
502 B
Text
import { DateLib } from "../classes";
|
||
|
||
import { formatWeekNumber } from "./formatWeekNumber";
|
||
|
||
test("should return the formatted week number", () => {
|
||
expect(formatWeekNumber(10)).toEqual("10");
|
||
});
|
||
|
||
test("should return the formatted week number with leading zero", () => {
|
||
expect(formatWeekNumber(1)).toEqual("01");
|
||
});
|
||
|
||
test("should format with the provided numeral system", () => {
|
||
const dateLib = new DateLib({ numerals: "arab" });
|
||
expect(formatWeekNumber(1, dateLib)).toEqual("٠١");
|
||
});
|