File tree Expand file tree Collapse file tree 3 files changed +16
-7
lines changed
specifyweb/frontend/js_src/lib Expand file tree Collapse file tree 3 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,6 @@ export const commonText = createDictionary({
231231 'fr-fr' : 'Mettre à jour' ,
232232 'uk-ua' : 'Оновити' ,
233233 } ,
234- listTruncated : {
235- 'en-us' : '(list truncated)' ,
236- 'ru-ru' : '(список усечен)' ,
237- 'es-es' : '(lista truncada)' ,
238- 'fr-fr' : '(liste tronquée)' ,
239- 'uk-ua' : '(список скорочено)' ,
240- } ,
241234 fullDate : {
242235 'en-us' : 'Full Date' ,
243236 'ru-ru' : 'Полная дата' ,
Original file line number Diff line number Diff line change 1+ Object . defineProperty ( globalThis , 'ResizeObserver' , {
2+ /**
3+ * Can't use an arrow function or method shorthand here because Response
4+ * should be invokable with "new" (as in "new ResizeObserver()")
5+ */
6+ // eslint-disable-next-line object-shorthand
7+ value : function ( ) {
8+ return {
9+ observe : ( ) : void => { } ,
10+ disconnect : ( ) : void => { } ,
11+ } ;
12+ } ,
13+ } ) ;
14+
15+ export { } ;
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import '@testing-library/jest-dom';
66import './__mocks__/CSS' ;
77import './__mocks__/Response' ;
88import './__mocks__/matchMedia' ;
9+ import './__mocks__/ResizeObserver' ;
910
1011import { configure } from '@testing-library/react' ;
1112import failOnConsole from 'jest-fail-on-console' ;
You can’t perform that action at this time.
0 commit comments