File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 1414
1515@testable import App
1616
17- import XCTVapor
17+ import Testing
18+ import Vapor
1819
19- class ErrorPageModelTests : AppTestCase {
2020
21- func test_500( ) throws {
21+ @Suite struct ErrorPageModelTests {
22+
23+ @Test func error_500( ) throws {
2224 // setup
2325 let error = Abort ( . internalServerError)
2426
2527 // MUT
2628 let model = ErrorPage . Model ( error)
2729
2830 // validate
29- XCTAssertEqual ( model. errorMessage, " 500 - Internal Server Error " )
31+ #expect ( model. errorMessage == " 500 - Internal Server Error " )
3032 }
3133
32- func test_500_with_reason ( ) throws {
34+ @ Test func error_500_with_reason ( ) throws {
3335 // setup
3436 let error = Abort ( . internalServerError, reason: " Reason " )
3537
3638 // MUT
3739 let model = ErrorPage . Model ( error)
3840
3941 // validate
40- XCTAssertEqual ( model. errorMessage, " 500 - Internal Server Error - Reason " )
42+ #expect ( model. errorMessage == " 500 - Internal Server Error - Reason " )
4143 }
4244
4345}
You can’t perform that action at this time.
0 commit comments