The actual snapshot is saved in test.js.snap
.
Generated by AVA.
t.throws(foo())
`function _avaThrowsHelperStart(t, assertion, file, line) {␊
if (t._throwsArgStart) {␊
t._throwsArgStart(assertion, file, line);␊
}␊
}␊
␊
function _avaThrowsHelperEnd(t, arg) {␊
if (t._throwsArgEnd) {␊
t._throwsArgEnd();␊
}␊
␊
return arg;␊
}␊
␊
t.throws((_avaThrowsHelperStart(t, "throws", "/some-file.js", 1), _avaThrowsHelperEnd(t, foo())));`
t.throws(foo()); t.throws(bar());
`function _avaThrowsHelperStart(t, assertion, file, line) {␊
if (t._throwsArgStart) {␊
t._throwsArgStart(assertion, file, line);␊
}␊
}␊
␊
function _avaThrowsHelperEnd(t, arg) {␊
if (t._throwsArgEnd) {␊
t._throwsArgEnd();␊
}␊
␊
return arg;␊
}␊
␊
t.throws((_avaThrowsHelperStart(t, "throws", "/some-file.js", 1), _avaThrowsHelperEnd(t, foo())));␊
t.throws((_avaThrowsHelperStart(t, "throws", "/some-file.js", 1), _avaThrowsHelperEnd(t, bar())));`
t.is(foo());
't.is(foo());'
t.notThrows(baz())
`function _avaThrowsHelperStart(t, assertion, file, line) {␊
if (t._throwsArgStart) {␊
t._throwsArgStart(assertion, file, line);␊
}␊
}␊
␊
function _avaThrowsHelperEnd(t, arg) {␊
if (t._throwsArgEnd) {␊
t._throwsArgEnd();␊
}␊
␊
return arg;␊
}␊
␊
t.notThrows((_avaThrowsHelperStart(t, "notThrows", "/some-file.js", 1), _avaThrowsHelperEnd(t, baz())));`