diff --git a/__snapshots__/JSONUtils.test.ts.js b/__snapshots__/JSONUtils.test.ts.js new file mode 100644 index 00000000..28bc1b7d --- /dev/null +++ b/__snapshots__/JSONUtils.test.ts.js @@ -0,0 +1,46 @@ +exports['JSONUtils should format JSON as JS 1'] = ` +{ + title: 'test', + test: true, + steps: [ + { + type: 'click', + target: 'main', + selectors: [ + 'aria/Test', + [ + '.cls', + '.cls' + ] + ], + offsetX: 1, + offsetY: 1, + assertedEvents: [ + { + type: 'navigation' + } + ] + }, + { + type: 'click', + target: 'main', + selectors: [ + 'aria/Test' + ], + offsetX: 1, + offsetY: 1, + assertedEvents: [ + { + type: 'navigation' + } + ] + } + ], + otherTest: 1.234, + nullTest: null +} +`; + +exports['JSONUtils should properly escape