Skip to content

Commit

Permalink
Test: Only check the modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
fvdm committed Nov 12, 2023
1 parent 7d811ac commit 5d95df5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ async function checkSuccess ( { test, data } ) {
try {
test()
.isObject( 'fail', 'data', data )
.isObject( 'fail', 'data.country', data?.country )
.isObject( 'fail', 'data.country.names', data?.country?.names )
.isExactly( 'fail', 'data.country.names.en', data?.country?.names?.en, 'Netherlands' )
.isArray( 'fail', 'data.subdivisions', data?.subdivisions )
.isString( 'fail', 'data.most_specific_subdivision', data?.most_specific_subdivision?.iso_code )
.isNotEmpty( 'fail', 'data.most_specific_subdivision', data?.most_specific_subdivision?.iso_code )
.done()
Expand Down

0 comments on commit 5d95df5

Please sign in to comment.