We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22f917 commit 23105f0Copy full SHA for 23105f0
test/api/hook.js
@@ -128,7 +128,8 @@ describe('hook', () => {
128
129
// Regression test for https://gitter.im/unexpectedjs/unexpected?at=5fb42b73747be107c1c76095
130
it('should not break `this` in clones created after installing the hook', function () {
131
- expect.hook(function (next) {
+ const parentExpect = expect.clone();
132
+ parentExpect.hook(function (next) {
133
return function (context, ...rest) {
134
return next(context, ...rest);
135
};
0 commit comments