From 18fdc970f62f973af8f47ee3b1dd66dcbda46d84 Mon Sep 17 00:00:00 2001 From: Nishchal Gautam Date: Thu, 12 Dec 2019 14:30:13 +0700 Subject: [PATCH] test(TinyNumberCompressor): add test --- src/adapters/TinyNumberCompressor.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/adapters/TinyNumberCompressor.spec.ts b/src/adapters/TinyNumberCompressor.spec.ts index 700e3fc..28c0966 100644 --- a/src/adapters/TinyNumberCompressor.spec.ts +++ b/src/adapters/TinyNumberCompressor.spec.ts @@ -2,6 +2,10 @@ import {ValueType} from "../Searilie"; import {TinyNumberCompressor} from "./TinyNumberCompressor"; describe("TinyNumberCompressor", () => { + it("PadStart should work ", () => { + expect(TinyNumberCompressor.leftPad("0", 3, "a")).toBe("aa0"); + }); + it("should be defined", () => { expect(TinyNumberCompressor).toBeDefined(); });