Skip to content

Commit

Permalink
Updated tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed committed Nov 28, 2023
1 parent e7da180 commit 7c783d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Tests/Segment-Tests/Analytics_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,8 @@ final class Analytics_Tests: XCTestCase {
}

func testJSONNaNDefaultHandlingZero() throws {
let analytics = Analytics(configuration: Configuration(writeKey: "test")
.jsonNonConformingNumberStrategy(.zero)
)
// notice we didn't set the nan handling option. zero is the default.
let analytics = Analytics(configuration: Configuration(writeKey: "test"))
let outputReader = OutputReaderPlugin()
analytics.add(plugin: outputReader)

Expand All @@ -842,7 +841,7 @@ final class Analytics_Tests: XCTestCase {
XCTAssertTrue(d! == 0)
}

func testJSONNaNDefaultHandlingNull() throws {
func testJSONNaNHandlingNull() throws {
let analytics = Analytics(configuration: Configuration(writeKey: "test")
.jsonNonConformingNumberStrategy(.null)
)
Expand Down

0 comments on commit 7c783d2

Please sign in to comment.