If t.plan(1) is called, then the only text in the report is that the test expected one assertion and got a different number.
Compare:
name: AssertionError
message: Planned for 1 assertion, but got 0.
assertion: plan
operator: ===
at: ActionsOnGoogleAva.<anonymous> (node_modules/actions-on-google-testing/src/actions-on-google-ava.ts:58:21)
and
---
name: AssertionError
message: Rejected promise returned by test
values: {"Rejected promise returned by test. Reason:":"AssertionError [ERR_ASSERTION] (AssertionError) {\n actual: '<speak>Your basket is now empty.</speak>',\n code: 'ERR_ASSERTION',\n expected: '<speak>Your basket is now full.</speak>',\n generatedMessage: true,\n operator: '==',\n message: '\\'<speak>Your basket is now empty.</speak>\\' == \\'Your basket is now empty.X\\'',\n}"}
at: equal (functional-test/add-remove-over-min-spend-test.js:14:14)
...
If
t.plan(1)
is called, then the only text in the report is that the test expected one assertion and got a different number.Compare:
and
See https://github.com/avajs/ava/blob/master/docs/recipes/when-to-use-plan.md