Created S3StorageTests.testDelete test case

This commit is contained in:
Caleb Kleveter 2018-12-14 08:31:12 -06:00
parent e325f435ee
commit c87b05e1e7
No known key found for this signature in database
GPG Key ID: B38DBD5CF2C98D69
1 changed files with 7 additions and 1 deletions

View File

@ -76,8 +76,14 @@ final class S3StorageTests: XCTestCase {
XCTAssertEqual(file.data, self.data)
}
func testDelete()throws {
let storage = try self.app.make(S3Storage.self)
try XCTAssertNoThrow(storage.delete(file: "markdown/test.md").wait())
}
static var allTests: [(String, (S3StorageTests) -> ()throws -> ())] = [
("testStore", testStore),
("testFetch", testFetch)
("testFetch", testFetch),
("testDelete", testDelete)
]
}