Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
node_tests: Use assert.notEqual.
Anders Kaseorgb700b048eba8
diff --git a/frontend_tests/node_tests/dispatch.js b/frontend_tests/node_tests/dispatch.jsindex 1661e27a0a5..cd18b03ba09 100644--- a/frontend_tests/node_tests/dispatch.js+++ b/frontend_tests/node_tests/dispatch.js@@ -109,7 +109,7 @@ emoji.initialize({realm_emoji, emoji_codes});function assert_same(actual, expected) {// This helper prevents us from getting false positives// where actual and expected are both undefined.- assert(expected !== undefined);+ assert.notEqual(expected, undefined);assert.deepEqual(actual, expected);}diff --git a/frontend_tests/node_tests/narrow_local.js b/frontend_tests/node_tests/narrow_local.jsindex a5a135d8398..df9cca94898 100644--- a/frontend_tests/node_tests/narrow_local.js+++ b/frontend_tests/node_tests/narrow_local.js@@ -44,15 +44,15 @@ function test_with(fixture) {},empty: () => fixture.empty,all_messages: () => {- assert(fixture.all_messages !== undefined);+ assert.notEqual(fixture.all_messages, undefined);return fixture.all_messages;},first: () => {- assert(fixture.all_messages !== undefined);+ assert.notEqual(fixture.all_messages, undefined);return fixture.all_messages[0];},last: () => {- assert(fixture.all_messages !== undefined);+ assert.notEqual(fixture.all_messages, undefined);return fixture.all_messages[fixture.all_messages.length - 1];},};