UNPKG

tsch-ej-numbers

Version:

A powerful TypeScript API for analyzing EuroJackpot draws. Perfect for developers who want to evaluate historical data, generate statistics, or build lottery-related applications.

19 lines (18 loc) 738 B
"use strict"; // src/__tests__/index.test.ts Object.defineProperty(exports, "__esModule", { value: true }); var index_1 = require("../index"); describe("Utility Functions", function () { test("add function adds two numbers", function () { expect((0, index_1.add)(2, 3)).toBe(5); expect((0, index_1.add)(-1, 1)).toBe(0); }); test("subtract function subtracts two numbers", function () { expect((0, index_1.subtract)(5, 3)).toBe(2); expect((0, index_1.subtract)(5, 5)).toBe(0); }); test("greet function returns a greeting message", function () { expect((0, index_1.greet)("Alice")).toBe("Hello, Alice!"); expect((0, index_1.greet)("Bob")).toBe("Hello, Bob!"); }); });