Skip to content

Commit

Permalink
Added test for accessing observations.db
Browse files Browse the repository at this point in the history
  • Loading branch information
amddg44 committed Sep 14, 2023
1 parent f83e4fe commit 3fa53c8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions DuckDuckGoTests/WebCacheManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@ class WebCacheManagerTests: XCTestCase {

XCTAssertEqual(dataStore.removeAllDataCalledCount, 1)
}

func testWhenAccessingObservationsDbThenValidDatabasePoolIsReturned() {
let pool = WebCacheManager.shared.getValidDatabasePool()
XCTAssertNotNil(pool, "DatabasePool should not be nil")
}

// MARK: Mocks

Expand Down

0 comments on commit 3fa53c8

Please sign in to comment.