Skip to content

Commit

Permalink
Test live non-existing file
Browse files Browse the repository at this point in the history
  • Loading branch information
lauriro committed Jan 18, 2024
1 parent eed171e commit 0380311
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/live.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ describe("S3 live on {0} {1}", [
})
})

it("should get error on non-existing file", function(assert, mock) {
s3client.get("non-existing-" + fileName, function(err, data) {
assert.equal(err, Error("File not found"))
assert.notOk(data)
assert.end()
})
})

it("should delete a file", function(assert) {
s3client.del(fileName, function(err) {
assert.notOk(err)
Expand Down

0 comments on commit 0380311

Please sign in to comment.