Changeset 43586
- Timestamp:
- 08/28/2018 01:04:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/qunit/wp-includes/js/wp-api.js
r41678 r43586 401 401 // Get the main endpoint. 402 402 var endpoint = theModels.at(0); 403 var expectedMetas = '{"meta_key":"meta_value"}'; 404 if ( 'Tags' === modelType ) { 405 expectedMetas = '{"test_single":"","test_multi":[],"meta_key":"meta_value","test_tag_meta":""}'; 406 } 403 407 404 408 // Verify the meta object returned correctly from `getMetas()`. 405 assert.equal( JSON.stringify( endpoint.getMetas() ), '{"meta_key":"meta_value"}', 'Full meta key/values object should be readable.' );409 assert.equal( JSON.stringify( endpoint.getMetas() ), expectedMetas, 'Full meta key/values object should be readable.' ); 406 410 407 411 // Verify single meta returned correctly from `getMeta()`
Note: See TracChangeset
for help on using the changeset viewer.