t.removeRequestHooks Method

Removes the attached request hooks from the test. Can be chained with other TestController methods.

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.