Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/skins/Vector/tests/jest/App.test.js
Ðазад
const VueTestUtils = require( '@vue/test-utils' ); const App = require( '../../resources/skins.vector.search/App.vue' ); const defaultProps = { id: 'searchform', searchAccessKey: 'f', searchTitle: 'search', showThumbnail: true, showDescription: true, highlightQuery: true, searchPlaceholder: 'Search MediaWiki', searchQuery: '' }; const mount = ( /** @type {Object} */ customProps ) => VueTestUtils.shallowMount( App, { props: Object.assign( {}, defaultProps, customProps ), global: { mocks: { $i18n: ( /** @type {string} */ str ) => ( { text: () => str } ) }, directives: { 'i18n-html': ( el, binding ) => { el.innerHTML = `${ binding.arg } (${ binding.value })`; } } } } ); describe( 'App', () => { it( 'renders a typeahead search component', () => { const wrapper = mount(); expect( wrapper.element ).toMatchSnapshot(); } ); } );
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка