From 4b19b36de1039c50d00393ba1099027b21bc52a4 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 11 Jun 2021 11:27:46 -0600 Subject: [PATCH] Crude JS->TS conversion on utils test because of linter and BigInt --- spec/unit/{utils.spec.js => utils.spec.ts} | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) rename spec/unit/{utils.spec.js => utils.spec.ts} (99%) diff --git a/spec/unit/utils.spec.js b/spec/unit/utils.spec.ts similarity index 99% rename from spec/unit/utils.spec.js rename to spec/unit/utils.spec.ts index 009a19852..e23d0ca93 100644 --- a/spec/unit/utils.spec.js +++ b/spec/unit/utils.spec.ts @@ -11,6 +11,8 @@ import { } from "../../src/utils"; import { logger } from "../../src/logger"; +// TODO: Fix types throughout + describe("utils", function() { describe("encodeParams", function() { it("should url encode and concat with &s", function() { @@ -238,7 +240,8 @@ describe("utils", function() { }, }); - const target = {}; + // TODO: Fix type + const target: any = {}; utils.extend(target, source); expect(target.enumerableProp).toBe(true); expect(target.nonenumerableProp).toBe(undefined); @@ -254,7 +257,7 @@ describe("utils", function() { await utils.sleep(1); expect(promiseCount).toEqual(0); ++promiseCount; - resolve(); + resolve(null); }); } @@ -262,7 +265,7 @@ describe("utils", function() { return new Promise(function(resolve, reject) { expect(promiseCount).toEqual(1); ++promiseCount; - resolve(); + resolve(null); }); }