Skip to content

Commit

Permalink
fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
ishkawa committed Mar 9, 2015
1 parent 4910a77 commit 4207801
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions APIKitTests/APITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ class APITests: XCTestCase {
XCTFail()

case .Failure(let box):
assertEqual(box.unbox.domain, error.domain)
assertEqual(box.unbox.code, error.code)
let error = box.unbox
assertEqual(error.domain, error.domain)
assertEqual(error.code, error.code)
}

expectation.fulfill()
Expand All @@ -129,8 +130,9 @@ class APITests: XCTestCase {
XCTFail()

case .Failure(let box):
assert(box.unbox.domain, ==, APIKitErrorDomain)
assertEqual(box.unbox.code, 400)
let error = box.unbox
assertEqual(error.domain, APIKitErrorDomain)
assertEqual(error.code, 400)
}

expectation.fulfill()
Expand Down

0 comments on commit 4207801

Please sign in to comment.