Skip to content

Commit

Permalink
Chore: Fix test failure due to missing API from mock
Browse files Browse the repository at this point in the history
I started using `engine.on` to listen for `parse::html::end`. Since this
wasn't in the mock for `t.context.engine` one of the early tests
failed (and the rest generated the error `'Attempted to wrap default
which is already wrapped'` since the test didn't clean up.
  • Loading branch information
antross committed Aug 29, 2018
1 parent f596d75 commit 7a0e6e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/connector-local/tests/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ test.beforeEach((t) => {
clean() { },
clear() { },
emitAsync() { },
notify() { }
notify() { },
on() { }
};
t.context.isFile = isFile;
});
Expand Down

0 comments on commit 7a0e6e1

Please sign in to comment.