From 5bb6396cf163f9819e73a7a0fe14a95321ad2fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= <34514239+appgurueu@users.noreply.github.com> Date: Sat, 3 Aug 2024 23:15:44 +0200 Subject: [PATCH] fix type --- search/test/fibonacci_search.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/test/fibonacci_search.test.ts b/search/test/fibonacci_search.test.ts index 3d73969e..19a42f64 100644 --- a/search/test/fibonacci_search.test.ts +++ b/search/test/fibonacci_search.test.ts @@ -11,7 +11,7 @@ describe('Fibonacci search', () => { [[1, 3, 5, 7, 9, 11, 13], 8, null] ])( 'of %o, searching for %o, expected %i', - (array: number[], target: number, expected: number) => { + (array: number[], target: number, expected: number | null) => { expect(fibonacciSearch(array, target)).toBe(expected); } );