Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Oct 29, 2023
1 parent 06059be commit 3ee5b80
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/unit/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1177,11 +1177,13 @@ describe('Client', function () {

describe('putObjectRetention(bucket, objectName, retentionConfig, callback)', () => {
it('should fail on null bucket', (done) => {
try {
client.putObjectRetention(null, '', {}, function () {})
} catch (e) {
done()
}
client.putObjectRetention(null, '', {}, function (err) {
if (err) {
done()
} else {
done(new Error('expecting error'))
}
})
})
it('should fail on empty bucket', (done) => {
client.putObjectRetention('', '', {}, function (err) {
Expand Down

0 comments on commit 3ee5b80

Please sign in to comment.