Skip to content

Commit

Permalink
Add explicit reference to decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
sxg committed Mar 13, 2019
1 parent 354fa09 commit 944a032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/AlertTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AlertTests: XCTestCase {
func testInitFromDecoder() {
// Given
// When
let alert = try! decoder.decode(Alert.self, from: self.alertsJSONData)
let alert = try! self.decoder.decode(Alert.self, from: self.alertsJSONData)

// Then
XCTAssertNotNil(alert)
Expand All @@ -54,7 +54,7 @@ class AlertTests: XCTestCase {
func testInitFromDecoderNoOptionals() {
// Given
// When
let alert = try! decoder.decode(Alert.self, from: self.alertsNoOptionalsJSONData)
let alert = try! self.decoder.decode(Alert.self, from: self.alertsNoOptionalsJSONData)

// Then
XCTAssertNotNil(alert)
Expand Down

0 comments on commit 944a032

Please sign in to comment.