Skip to content

Commit 48666df

Browse files
committed
Make tests compatible with new enableFormattingPreferences flag
1 parent 3ddb842 commit 48666df

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

app/test/unit/ui/component-primitives-test.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ describe('component primitives', () => {
6868

6969
assert.deepEqual(
7070
badges.map(badge => badge.textContent),
71-
['12', '300+']
71+
// If enableFormattingPreferences() is true, the count is not currently capped at 300
72+
['12', '301']
7273
)
7374
})
7475
})

app/test/unit/ui/relative-time-test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ describe('RelativeTime', () => {
6868

6969
render(<RelativeTime date={then} onlyRelative={false} tooltip={false} />)
7070

71-
const absoluteDate = formatDate(then, { dateStyle: 'medium' })
71+
const absoluteDate = formatDate(then, { time: false, dateStyle: 'medium' })
7272

7373
assert.equal(screen.getByText(absoluteDate).textContent, absoluteDate)
7474
})

0 commit comments

Comments
 (0)