@transferwise/components 0.0.0-experimental-f3030df → 0.0.0-experimental-e95c8a5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-f3030df",
3
+ "version": "0.0.0-experimental-e95c8a5",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,5 +1,5 @@
1
1
  import { act, screen, within } from '@testing-library/react';
2
- import userEvent from '@testing-library/user-event';
2
+ import userEvent, { specialChars } from '@testing-library/user-event';
3
3
 
4
4
  import { render } from '../test-utils';
5
5
 
@@ -94,7 +94,7 @@ describe('SelectInput', () => {
94
94
  // eslint-disable-next-line @typescript-eslint/require-await
95
95
  await act(async () => {
96
96
  userEvent.tab();
97
- userEvent.keyboard('{enter}');
97
+ userEvent.keyboard(specialChars.enter);
98
98
  });
99
99
 
100
100
  const listbox = screen.getByRole('listbox');
@@ -109,7 +109,7 @@ describe('SelectInput', () => {
109
109
  userEvent.keyboard('x');
110
110
  expect(within(listbox).queryByRole('option')).not.toBeInTheDocument();
111
111
 
112
- userEvent.keyboard('{backspace}');
112
+ userEvent.keyboard(specialChars.backspace);
113
113
  expect(within(listbox).getByRole('option')).toBeInTheDocument();
114
114
 
115
115
  const option = within(listbox).getAllByRole('option')[0];