Skip to content

Commit

Permalink
update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
hoythan committed Apr 12, 2019
1 parent 8d17f8a commit 4456b09
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,18 @@ describe('async.test.js', function() {

let result;

try {
result = await this.db.update(table, {
name: prefix + 'fengmk2-update2',
}, {
where: {
name: prefix + 'fengmk2-update',
},
});
} catch (error) {
assert.equal(error.message, "ER_DUP_ENTRY: Duplicate entry 'prefix-v8.11.4-fengmk2-update2' for key 'name'");
}

try {
result = await this.db.update(table, {
name: prefix + 'fengmk2-update',
Expand Down

0 comments on commit 4456b09

Please sign in to comment.