@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
15 lines (13 loc) • 375 B
JavaScript
import { toNumber } from '../chunk-KX3AOSXN.mjs';
import '../chunk-NYLAFCGV.mjs';
// src/toNumber/toNumber.test.ts
describe("toNumber()", () => {
test("should return null", () => {
const isNotOk = toNumber("null");
expect(isNotOk).toBe("null");
});
test("should return number", () => {
const number = toNumber("69");
expect(number).toBe(69);
});
});