File tree Expand file tree Collapse file tree 11 files changed +415
-432
lines changed
Expand file tree Collapse file tree 11 files changed +415
-432
lines changed Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- import XCTest
16-
1715@testable import App
1816
1917import Dependencies
2018import S3Store
19+ import Testing
2120
2221
23- class S3StoreExtensionTests : XCTestCase {
22+ @ Suite struct S3StoreExtensionTests {
2423
25- func test_Key_readme ( ) throws {
24+ @ Test func Key_readme ( ) throws {
2625 try withDependencies {
2726 $0. environment. awsReadmeBucket = { " awsReadmeBucket " }
2827 } operation: {
2928 let imageKey = try S3Store . Key. readme ( owner: " owner " , repository: " repository " ,
3029 imageUrl: " https://example.com/image/example-image.png " )
31- XCTAssertEqual ( imageKey. s3Uri, " s3://awsReadmeBucket/owner/repository/example-image.png " )
30+ #expect ( imageKey. s3Uri == " s3://awsReadmeBucket/owner/repository/example-image.png " )
3231
3332 let readmeKey = try S3Store . Key. readme ( owner: " owner " , repository: " repository " )
34- XCTAssertEqual ( readmeKey. s3Uri, " s3://awsReadmeBucket/owner/repository/readme.html " )
33+ #expect ( readmeKey. s3Uri == " s3://awsReadmeBucket/owner/repository/readme.html " )
3534 }
3635 }
3736
Load Diff Large diffs are not rendered by default.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments