TestController.removeRequestHooks Method

Removes the attached request hooks from the test.

t.removeRequestHooks(...hooks)
Parameter Type Description
hooks RequestHook subclass A RequestLogger, RequestMock or custom user-defined hook.

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.