Skip to content

Commit 16c45f4

Browse files
committed
tests: fix tests after trim-html rewriting
1 parent e6d60e5 commit 16c45f4

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/Paywall/index.test.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ describe('<Paywall />', () => {
187187
document.querySelector<HTMLDivElement>('#restricted-content').innerText
188188
);
189189

190-
expect(content).toBe('This sentence should be almost...');
190+
expect(content)
191+
.toBe('This sentence should be almost complete....');
191192

192193
await sleep(11);
193194

@@ -201,7 +202,8 @@ describe('<Paywall />', () => {
201202
document.querySelector<HTMLDivElement>('#restricted-content').innerText
202203
);
203204

204-
expect(contentAfterConsent).toBe('This sentence should be almost...');
205+
expect(contentAfterConsent)
206+
.toBe('This sentence should be almost complete....');
205207
});
206208

207209
afterAll(async () => {

0 commit comments

Comments
 (0)