fix: keep client test helpers compatible with es2020
This commit is contained in:
parent
dd71653ad5
commit
901c54169c
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ export const renderWithProviders = (
|
|||
options: RenderWithProvidersOptions = {}
|
||||
): RenderResult & { user: ReturnType<typeof userEvent.setup> } => {
|
||||
const { route = "/", path, language = "fr" } = options;
|
||||
const testUser = Object.hasOwn(options, "testUser") ? options.testUser : defaultUser;
|
||||
const testUser = Object.prototype.hasOwnProperty.call(options, "testUser") ? options.testUser : defaultUser;
|
||||
|
||||
testI18n.changeLanguage(language);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue