Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu authored Aug 3, 2024
1 parent ae55fe8 commit 5bb6396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/test/fibonacci_search.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
);
Expand Down

0 comments on commit 5bb6396

Please sign in to comment.