Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adrien2p committed Jun 6, 2023
1 parent 7a0adda commit ffda161
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe("handlePostgresDataError", function () {

it("should throw a specific message on database not found", function () {
const error = new Error("database does not exist")
Object.assign(error, { code: DatabaseErrorCode.wrongCredentials })
Object.assign(error, { code: DatabaseErrorCode.notFound })

let outputError: any
try {
Expand All @@ -78,7 +78,7 @@ describe("handlePostgresDataError", function () {

it("should throw a specific message on database migration missing", function () {
const error = new Error("database does not exist")
Object.assign(error, { code: DatabaseErrorCode.wrongCredentials })
Object.assign(error, { code: DatabaseErrorCode.migrationMissing })

let outputError: any
try {
Expand Down

0 comments on commit ffda161

Please sign in to comment.