node_tests: Use assert.fail.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-06-07 20:02:39 -07:00
committed by Tim Abbott
parent c446435f54
commit 0d4c142f0b

View File

@@ -230,7 +230,7 @@ test("errors", () => {
with_field(
pm_conversations,
"set_partner",
() => assert(false),
() => assert.fail(),
() => {
pm_conversations.process_message(message);
},