Skip to content

Commit

Permalink
fix test failed
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekTree0101 committed Oct 28, 2022
1 parent bca0d56 commit fb9ef3d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SushiBelt.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'SushiBelt'
s.version = ENV['LIB_VERSION'] || '1.0.0'
s.version = ENV['LIB_VERSION'] || '1.0.2'
s.summary = 'Track visible views on the UIScrollView'

s.description = 'The SushiBelt can be used to measure exposure according to the ratio for all views on the UIScrollView.'
Expand Down
8 changes: 4 additions & 4 deletions Tests/SushiBeltTests/SushiBeltTrackerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ extension SushiBeltTrackerTests {
let items = [
SushiBeltTrackerItem(
id: .index(1),
view: UIView(frame: .zero)
).frameInWindow(CGRect(x: 0.0, y: 100.0, width: 100.0, height: 100.0))
rect: .init(x: 0.0, y: 100.0, width: 100.0, height: 100.0)
)
]

tracker.cachedItems = .init()
Expand All @@ -340,8 +340,8 @@ extension SushiBeltTrackerTests {
tracker.cachedItems = .init([
SushiBeltTrackerItem(
id: .index(1),
view: UIView(frame: .zero)
).frameInWindow(CGRect(x: 0.0, y: 100.0, width: 100.0, height: 100.0))
rect: .init(x: 0.0, y: 100.0, width: 100.0, height: 100.0)
)
])

// when
Expand Down

0 comments on commit fb9ef3d

Please sign in to comment.