Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
antross committed Aug 29, 2018

Verified

This commit was signed with the committer’s verified signature.
addaleax Anna Henningsen
1 parent 294595c commit 02f1bb1
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
@@ -23,7 +23,8 @@ test.beforeEach((t) => {
clean() { },
clear() { },
emitAsync() { },
notify() { }
notify() { },
on() { }
};
t.context.isFile = isFile;
});

0 comments on commit 02f1bb1

Please sign in to comment.