Skip to content

Commit

Permalink
Update TextToSpeechTests
Browse files Browse the repository at this point in the history
With status code validation in place, a different error message and code is now produced for these negative tests.
  • Loading branch information
glennrfisher committed Sep 30, 2016
1 parent 0dc54cb commit 79500e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/TextToSpeechV1/Tests/TextToSpeechTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ class TextToSpeechTests: XCTestCase {
let expectation = expectationWithDescription(description)

let failure = { (error: NSError) in
XCTAssertEqual(error.code, 400)
XCTAssertEqual(error.code, -6003)
expectation.fulfill()
}

Expand All @@ -743,7 +743,7 @@ class TextToSpeechTests: XCTestCase {

let voice = SynthesisVoice.Custom(voice: "invalid-voice")
let failure = { (error: NSError) in
XCTAssertEqual(error.code, 404)
XCTAssertEqual(error.code, -6003)
expectation.fulfill()
}

Expand Down

0 comments on commit 79500e5

Please sign in to comment.