Skip to content

Commit bc0f426

Browse files
types lint fix
1 parent f080ba7 commit bc0f426

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

functions/pipe_test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
22

33
import { assertEquals, assertThrows } from "@std/assert";
4-
import { pipe } from "./mod.ts";
4+
import { pipe } from "./pipe.ts";
55

66
Deno.test("pipe() handles mixed types", () => {
77
const inputPipe = pipe(
88
Math.abs,
99
Math.sqrt,
1010
Math.floor,
11-
(num) => `result: ${num}`,
11+
(num: number) => `result: ${num}`,
1212
);
1313
assertEquals(inputPipe(-2), "result: 1");
1414
});
@@ -23,10 +23,10 @@ Deno.test("pipe() throws an exceptions when a function throws an exception", ()
2323
Math.abs,
2424
Math.sqrt,
2525
Math.floor,
26-
(num) => {
26+
(num: number) => {
2727
throw new Error("This is an error for " + num);
2828
},
29-
(num) => `result: ${num}`,
29+
(num: number) => `result: ${num}`,
3030
);
3131
assertThrows(() => inputPipe(-2));
3232
});

0 commit comments

Comments
 (0)