Tweak comment
This commit is contained in:
parent
0cf1b69c7a
commit
03614e54ae
|
@ -20,9 +20,8 @@ import {
|
|||
This Object is a JSON representation of single Order GET operation from the WooCommerce REST API.
|
||||
|
||||
Developer note:
|
||||
We use JSON.stringify here to convert an Object into a String.
|
||||
This is done like this because JavaScript passes Objects around by reference,
|
||||
and we don't want tests to modify the original `jsonPayloadFull` variable.
|
||||
We use JSON.stringify here to convert an Object into a String, as JavaScript passes Objects
|
||||
around by reference, and we don't want tests to modify the original `responseOrderJson` variable.
|
||||
*/
|
||||
const responseOrderJson = JSON.stringify({
|
||||
id: 1218,
|
||||
|
|
Loading…
Reference in New Issue