@@ -139,21 +139,21 @@ class GitHubAPITests: XCTestCase {
139139 }
140140 }
141141
142- func test_securityVulnerabilityJSON( ) {
143- let data = try ! Data ( contentsOf: Bundle ( for: type ( of: self ) ) . url ( forResource: " security_vulnerability " , withExtension: " json " ) !)
144- let result = processResponse ( request: V3NotificationRequest ( ) , input: data)
145- switch result {
146- case . failure( let error) : XCTFail ( error? . localizedDescription ?? " Failed without error " )
147- case . success( let response) :
148- XCTAssertEqual ( response. data. count, 1 )
149-
150- let first = response. data. first!
151- XCTAssertEqual ( first. id, " 328706116 " )
152- XCTAssertEqual ( first. reason, . securityAlert)
153- XCTAssertEqual ( first. repository. name, " eslint-docs " )
154- XCTAssertEqual ( first. repository. owner. login, " j-f1 " )
155- XCTAssertEqual ( first. subject. title, " Potential security vulnerability found in the hoek dependency " )
142+ func test_securityVulnerabilityJSON( ) {
143+ let data = try ! Data ( contentsOf: Bundle ( for: type ( of: self ) ) . url ( forResource: " security_vulnerability " , withExtension: " json " ) !)
144+ let result = processResponse ( request: V3NotificationRequest ( ) , input: data)
145+ switch result {
146+ case . failure( let error) : XCTFail ( error? . localizedDescription ?? " Failed without error " )
147+ case . success( let response) :
148+ XCTAssertEqual ( response. data. count, 1 )
149+
150+ let first = response. data. first!
151+ XCTAssertEqual ( first. id, " 328706116 " )
152+ XCTAssertEqual ( first. reason, . securityAlert)
153+ XCTAssertEqual ( first. repository. name, " eslint-docs " )
154+ XCTAssertEqual ( first. repository. owner. login, " j-f1 " )
155+ XCTAssertEqual ( first. subject. title, " Potential security vulnerability found in the hoek dependency " )
156+ }
156157 }
157- }
158158
159159}
0 commit comments