mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 01:24:27 +00:00
REST API: JS client - QUnit tests for custom namespace route discovery.
Add QUnit tests for the parsing of custom namespace routes. Add a custom schema fixture based on the `wp-js-widgets` plugin. Test that the client can parse the widget namespace in the schema and correctly construct the expected group of models and collections. Also includes a small unrelated QUnit fix to ensure nav-menu test passes when it is loaded without its tests executing as well as a small jshint fix, adding a missing semicolon since [40107]. Props jnylen0. Fixes #39561. git-svn-id: https://develop.svn.wordpress.org/trunk@40109 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1928,7 +1928,7 @@ themes.RunInstaller = {
|
||||
// Open the theme preview.
|
||||
self.view.collection.once( 'query:success', function() {
|
||||
$( 'div[data-slug="' + slug + '"]' ).trigger( 'click' );
|
||||
})
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user