Skip to content

Commit

Permalink
typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Nov 17, 2021
1 parent 9d2158e commit 3e0c5a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/paste.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function readClipboardDataFromClipboardApi(document: Document) {

if (!items) {
throw new Error(
'`userEvent.paste() without `clipboardData` requires the `ClipboardAPI` to be available.',
'`userEvent.paste()` without `clipboardData` requires the `ClipboardAPI` to be available.',
)
}

Expand Down
2 changes: 1 addition & 1 deletion tests/paste.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ describe('paste from clipboard', () => {
element.focus()

await expect(() => userEvent.paste()).rejects.toMatchInlineSnapshot(
`[Error: \`userEvent.paste() without \`clipboardData\` requires the \`ClipboardAPI\` to be available.]`,
`[Error: \`userEvent.paste()\` without \`clipboardData\` requires the \`ClipboardAPI\` to be available.]`,
)
expect(getEvents('paste')).toHaveLength(0)
})
Expand Down

0 comments on commit 3e0c5a3

Please sign in to comment.