[wp-trac] [WordPress Trac] #39264: Add WP-API JS Client unit tests to core
WordPress Trac
noreply at wordpress.org
Wed Feb 15 05:44:51 UTC 2017
#39264: Add WP-API JS Client unit tests to core
--------------------------------------+------------------------------
Reporter: adamsilverstein | Owner: adamsilverstein
Type: enhancement | Status: reopened
Priority: normal | Milestone: 4.7.3
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses: javascript
--------------------------------------+------------------------------
Comment (by jnylen0):
Yes, this should prevent the fixtures from changing, and works well in my
testing.
The js file just loads two versions of the fixtures, compares them, and
prints the value from the first file for any keys that differ. I'm not
sure how useful it will be going forward - I just included it here for
completeness.
If you like, we can talk through any of this on Slack and see what else
needs to be documented/clarified.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39264#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list