t.removeRequestHooks Method

Removes request hooks from the test. Chainable.

t.removeRequestHooks(...hooks) → this | Promise<any>
Parameter Type Description
hooks RequestHook subclass A RequestLogger, RequestMock or custom user-defined hook.

Note

The t.removeRequestHooks method uses the rest operator that allows you to pass multiple hooks as parameters or arrays of hooks.

To attach request hooks, use the t.addRequestHooks, test.requestHooks and fixture.requestHooks methods.