utils.test.js 358 B

123456789101112131415
  1. import { stringJoin, int, innerHeight } from '../src/lib/utils';
  2. import assert from "power-assert";
  3. describe("utils test", () => {
  4. it("should join the string", () => {
  5. const joined = stringJoin('good', 'bye');
  6. assert.equal(joined, 'good bye')
  7. });
  8. it("parseint", () => {
  9. const inted = int("1233");
  10. assert.equal(inted, 1233);
  11. });
  12. });