diff --git a/test/hooks.ts b/test/hooks.ts index 9a868119f..5e78c9e00 100644 --- a/test/hooks.ts +++ b/test/hooks.ts @@ -1360,10 +1360,8 @@ test('does not throw on empty body when running afterResponse hooks', withServer await t.notThrowsAsync(got('', { hooks: { afterResponse: [ - response => { - return response; - } - ] - } + response => response, + ], + }, })); });