Skip to content

Commit

Permalink
fix: Move CacheClearer files to proper locations (#550)
Browse files Browse the repository at this point in the history
Xcode lied to me about where the files were located for
#549. This fixes it.

### Checklist

Please do the following before merging:

- [x] Ensure any public-facing changes are reflected in the
[changelog](https://github.com/kyleve/Listable/blob/main/CHANGELOG.md).
Include them in the `Main` section.
  • Loading branch information
robmaceachern authored Dec 18, 2024
1 parent 356f3ad commit bdcb63b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class CacheClearerTests: XCTestCase {
ListProperties.headerFooterMeasurementCache.push(UIView(), with: .identifier(for: UIView.self))
ListProperties.itemMeasurementCache.push(UIView(), with: .identifier(for: UIView.self))

XCTAssertEqual(ListProperties.headerFooterMeasurementCache.cachedViewCount, 1)
XCTAssertEqual(ListProperties.itemMeasurementCache.cachedViewCount, 1)
XCTAssertGreaterThanOrEqual(ListProperties.headerFooterMeasurementCache.cachedViewCount, 1)
XCTAssertGreaterThanOrEqual(ListProperties.itemMeasurementCache.cachedViewCount, 1)

CacheClearer.clearStaticCaches()

Expand Down

0 comments on commit bdcb63b

Please sign in to comment.