Skip to content

Latest commit

Β 

History

History
95 lines (70 loc) Β· 1.22 KB

File metadata and controls

95 lines (70 loc) Β· 1.22 KB

Snapshot report for test/test.mjs

The actual snapshot is saved in test.mjs.snap.

Generated by AVA.

json

Snapshot 1

{
  batman: 'true',
}

Snapshot 2

`'use strict';␊
␊
const batman = "true";␊
var batman$1 = {␊
  batman: batman␊
};␊
␊
t.truthy(batman$1.batman);␊
t.snapshot(batman$1);␊
`

import

Snapshot 1

true

Snapshot 2

`'use strict';␊
␊
t.truthy(true);␊
␊
const batman = true;␊
␊
t.snapshot(batman);␊
`

bad json

Snapshot 1

{
  code: 'PLUGIN_ERROR',
  plugin: 'dataUri',
  pluginCode: 'DU$JSON',
}

base64

Snapshot 1

{
  batman: 'true',
}

Snapshot 2

`'use strict';␊
␊
const batman = "true";␊
var batman$1 = {␊
  batman: batman␊
};␊
␊
t.truthy(batman$1.batman);␊
t.snapshot(batman$1);␊
`

works as CJS plugin

Snapshot 1

{
  batman: 'true',
}

Snapshot 2

`'use strict';␊
␊
const batman = "true";␊
var batman$1 = {␊
  batman: batman␊
};␊
␊
t.truthy(batman$1.batman);␊
t.snapshot(batman$1);␊
`