File tree Expand file tree Collapse file tree
packages/server/src/utils/helpers/entities/resolveEntityValues Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -148,11 +148,11 @@ const comparators = {
148148 const flattenActual = normalize ( actual ) ;
149149 const flattenEntry = normalize ( entry ) ;
150150
151- return Object . entries ( flattenEntry ) . every ( ( [ flattenEntryKey , expectedValue ] ) => {
152- if ( isComparator ( expectedValue ) ) {
153- return comparators . fn ( flattenActual [ flattenEntryKey ] , expectedValue ) ;
151+ return Object . entries ( flattenEntry ) . every ( ( [ flattenEntryKey , flattenEntryValue ] ) => {
152+ if ( isComparator ( flattenEntryValue ) ) {
153+ return comparators . fn ( flattenActual [ flattenEntryKey ] , flattenEntryValue ) ;
154154 }
155- return comparators . equals ( flattenActual [ flattenEntryKey ] , expectedValue ) ;
155+ return comparators . equals ( flattenActual [ flattenEntryKey ] , flattenEntryValue ) ;
156156 } ) ;
157157 }
158158} ;
You can’t perform that action at this time.
0 commit comments