Skip to content

Commit

Permalink
Improve theme.json test failure messages by pretty printing css for a…
Browse files Browse the repository at this point in the history
… more accurate diff (WordPress#64077)

* Add basic formatting function and apply to one test

WIP

Add comment

* Add assertSameCSS expectation which outputs pretty printed test failure along with raw css for updating the test

Update accidentally committed test failure

Fix expected,actual order and minimize diff

Fix - make sure the actual is output in addition to the pretty printed failure, not the expected

Update test expectation so test passes

Revert "Update test expectation so test passes"

This reverts commit c9f655a.

Update test expectation so test passes

* Convert comment to docblock

----

Co-authored-by: talldan <[email protected]>
Co-authored-by: andrewserong <[email protected]>
Co-authored-by: ramonjd <[email protected]>
  • Loading branch information
4 people authored Jul 31, 2024
1 parent d5e7a77 commit de89af5
Showing 1 changed file with 96 additions and 56 deletions.
Loading

0 comments on commit de89af5

Please sign in to comment.