Skip to content

Commit

Permalink
test: register root hooks in shared helper
Browse files Browse the repository at this point in the history
this resolves an issue in which the hooks weren't being registered in
browser tests
  • Loading branch information
owenpearson committed Mar 5, 2024
1 parent 3594c26 commit 359c514
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/common/modules/shared_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,17 @@ define([
expect(json1 === json2, 'JSON data contents mismatch.').to.be.ok;
}

after(function (done) {
this.timeout(10 * 1000);
testAppModule.tearDown(function (err) {
if (err) {
done(err);
return;
}
done();
});
});

return (module.exports = {
setupApp: testAppModule.setup,
tearDownApp: testAppModule.tearDown,
Expand Down

0 comments on commit 359c514

Please sign in to comment.