Skip to content

Commit

Permalink
Updated unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed May 16, 2024
1 parent be50ea9 commit fb801c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DuckDuckGoTests/AutofillPixelReporterTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ final class AutofillPixelReporterTests: XCTestCase {
XCTAssertTrue(autofillPixelReporter.pixelsToFireFor(.searchDAU).isEmpty)
}

func testWhenUserSearchDauIsNotTodayAndEventTypeIsFillThenOnePixelWillBeFired() {
func testWhenUserSearchDauIsNotTodayAndEventTypeIsFillThenNoPixelsWillBeFired() {
autofillPixelReporter.autofillSearchDauDate = Date().addingTimeInterval(-2 * 60 * 60 * 24)
autofillPixelReporter.autofillFillDate = Date().addingTimeInterval(-2 * 60 * 60 * 24)

XCTAssertEqual(autofillPixelReporter.pixelsToFireFor(.fill).count, 1)
XCTAssertTrue(autofillPixelReporter.pixelsToFireFor(.fill).isEmpty)
}

func testWhenUserSearchDauIsTodayAndAutofillDateIsTodayAndEventTypeIsSearchDauAndAccountsCountIsLessThanTenThenTwoPixelWillBeFired() {
Expand Down

0 comments on commit fb801c7

Please sign in to comment.