Skip to content

Commit 3dca6f9

Browse files
committed
refactor: rename sut to container
1 parent 8df69f3 commit 3dca6f9

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

types/__tests__/type-tests.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -230,15 +230,15 @@ export async function testWaitFors() {
230230
}
231231

232232
export async function testWithin() {
233-
const sut = within(document.body)
234-
sut.queryAllByLabelText('Some label')
233+
const container = within(document.body)
234+
container.queryAllByLabelText('Some label')
235235

236-
sut.getByText('Click me')
237-
sut.getByText<HTMLButtonElement>('Click me')
238-
sut.getAllByText<HTMLButtonElement>('Click me')
236+
container.getByText('Click me')
237+
container.getByText<HTMLButtonElement>('Click me')
238+
container.getAllByText<HTMLButtonElement>('Click me')
239239

240-
await sut.findByRole('button', {name: /click me/i})
241-
sut.getByRole<HTMLButtonElement>('button', {name: /click me/i})
240+
await container.findByRole('button', {name: /click me/i})
241+
container.getByRole<HTMLButtonElement>('button', {name: /click me/i})
242242
}
243243

244244
/*

0 commit comments

Comments
 (0)