Skip to content

Commit 9aa1f35

Browse files
committed
fix(test): revert more OrFail calls where tests expect null results
1 parent f56ffb3 commit 9aa1f35

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎test/functional/query-builder/select/query-builder-select.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ describe("query builder > select", () => {
495495
const entity = await dataSource
496496
.createQueryBuilder(Post, "post")
497497
.where("post.id = :id", { id: "2" })
498-
.getOneOrFail()
498+
.getOne()
499499

500500
expect(entity).to.be.null
501501
}),

‎test/functional/transaction/nested-transaction/transaction-in-entity-manager.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ describe("transaction > nested transaction", () => {
202202
}).should.be.rejected
203203

204204
for (const condition of conditions) {
205-
const post = await dataSource.manager.findOneOrFail(Post, {
205+
const post = await dataSource.manager.findOne(Post, {
206206
where: { title: condition.title },
207207
})
208208
expect(post).to.be.null

0 commit comments

Comments
 (0)