Skip to content

Commit 31d9ef9

Browse files
iInclude _wp_note_status in expected meta when testing comment meta
1 parent 2188f3e commit 31d9ef9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/qunit/wp-includes/js/wp-api.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@
404404
if ( 'Tags' === modelType ) {
405405
expectedMetas = '{"test_single":"","test_multi":[],"meta_key":"meta_value","test_tag_meta":""}';
406406
}
407+
if ( 'Comments' === modelType ) {
408+
expectedMetas = '{"_wp_note_status":null,"meta_key":"meta_value"}';
409+
}
407410

408411
// Verify the meta object returned correctly from `getMetas()`.
409412
assert.equal( JSON.stringify( endpoint.getMetas() ), expectedMetas, 'Full meta key/values object should be readable.' );

0 commit comments

Comments
 (0)