Skip to content

Commit d1277c3

Browse files
committed
Upgrade dependencies
1 parent 310bdff commit d1277c3

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

deps_test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export * from "https://deno.land/std@0.127.0/testing/asserts.ts";
1+
export * from "https://deno.land/std@0.164.0/testing/asserts.ts";

ensure_test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ Deno.test("ensureFunction returns the value when the value is function", () => {
122122
assertEquals(ensureFunction(a), a);
123123
const b = () => {};
124124
assertEquals(ensureFunction(b), b);
125-
assertEquals(ensureFunction(setTimeout), setTimeout);
125+
assertEquals(
126+
ensureFunction(setTimeout),
127+
setTimeout as unknown,
128+
);
126129
});
127130
Deno.test("ensureFunction throws error on non function", () => {
128131
assertThrows(() => ensureFunction("a"));
@@ -284,20 +287,20 @@ Deno.test("ensureLike does it's job on struct", () => {
284287
foo: "",
285288
bar: 0,
286289
hoge: "",
287-
});
290+
} as unknown);
288291

289292
assertThrows(() => ensureLike(ref, {}));
290293
assertThrows(() => ensureLike(ref, { foo: "" }));
291294
assertThrows(() => ensureLike(ref, { bar: 0 }));
292295
});
293296
Deno.test("ensureLike does it's job on function", () => {
294297
const ref = () => {};
295-
assertEquals(ensureLike(ref, ensureFunction), ensureFunction);
298+
assertEquals(ensureLike(ref, ensureFunction), ensureFunction as unknown);
296299
const a = function () {};
297300
assertEquals(ensureLike(ref, a), a);
298301
const b = () => {};
299302
assertEquals(ensureLike(ref, b), b);
300-
assertEquals(ensureLike(ref, setTimeout), setTimeout);
303+
assertEquals(ensureLike(ref, setTimeout), setTimeout as unknown);
301304

302305
assertThrows(() => ensureLike(ref, "a"));
303306
assertThrows(() => ensureLike(ref, 0));

maybe_test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Deno.test("maybeFunction returns the value when the value is function", () => {
120120
assertEquals(maybeFunction(a), a);
121121
const b = () => {};
122122
assertEquals(maybeFunction(b), b);
123-
assertEquals(maybeFunction(setTimeout), setTimeout);
123+
assertEquals(maybeFunction(setTimeout), setTimeout as unknown);
124124
});
125125
Deno.test("maybeFunction returns undefined on non function", () => {
126126
assertUndefined(maybeFunction("a"));
@@ -234,20 +234,20 @@ Deno.test("maybeLike does it's job on struct", () => {
234234
foo: "",
235235
bar: 0,
236236
hoge: "",
237-
});
237+
} as unknown);
238238

239239
assertUndefined(maybeLike(ref, {}));
240240
assertUndefined(maybeLike(ref, { foo: "" }));
241241
assertUndefined(maybeLike(ref, { bar: 0 }));
242242
});
243243
Deno.test("maybeLike does it's job on function", () => {
244244
const ref = () => {};
245-
assertEquals(maybeLike(ref, maybeFunction), maybeFunction);
245+
assertEquals(maybeLike(ref, maybeFunction), maybeFunction as unknown);
246246
const a = function () {};
247247
assertEquals(maybeLike(ref, a), a);
248248
const b = () => {};
249249
assertEquals(maybeLike(ref, b), b);
250-
assertEquals(maybeLike(ref, setTimeout), setTimeout);
250+
assertEquals(maybeLike(ref, setTimeout), setTimeout as unknown);
251251

252252
assertUndefined(maybeLike(ref, "a"));
253253
assertUndefined(maybeLike(ref, 0));

0 commit comments

Comments
 (0)