Skip to content
This repository has been archived by the owner on Jan 12, 2023. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneJeon committed Nov 18, 2021
1 parent f0328b2 commit 69752fc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
"lint-staged": "12.0.2",
"node-notifier": "^10.0.0",
"npm-run-all": "^4.1.5",
"objection": "3.0.0",
"objection": "^3",
"objection-table-name": "^1.2.5",
"pg": "^8.7.1",
"skip-ci": "^1.0.4"
},
"peerDependencies": {
"objection": "^2.2.15"
"objection": "^3"
},
"prettier": "@janejeon/prettier-config",
"keywords": [
Expand Down
11 changes: 7 additions & 4 deletions tests/utils/trxify-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ let afterDone
// Initiate transaction
beforeEach(done => {
knex
.transaction(function (newtrx) {
BaseModel.knex(newtrx)
done()
})
.transaction(
function (newtrx) {
BaseModel.knex(newtrx)
done()
},
{ doNotRejectOnRollback: false }
)
.catch(function () {
// call afterEach's done
afterDone()
Expand Down

0 comments on commit 69752fc

Please sign in to comment.