casper_tests: Replace const with var.

Apparently "use strict" also makes PhantomJS more strict about syntax
it doesn’t support.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-07-31 19:36:12 -07:00 committed by Tim Abbott
parent 48102c15a3
commit 39c3a02736
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ exports.wait_for_message_fully_processed = function (content) {
- does it look to have been - does it look to have been
re-rendered based on server info? re-rendered based on server info?
*/ */
const last_msg = current_msg_list.last(); var last_msg = current_msg_list.last();
if (last_msg.raw_content !== content) { if (last_msg.raw_content !== content) {
return false; return false;

View File

@ -1,7 +1,7 @@
var common = require("../casper_lib/common.js"); var common = require("../casper_lib/common.js");
function stream_checkbox(stream_name) { function stream_checkbox(stream_name) {
const stream_id = common.get_stream_id(stream_name); var stream_id = common.get_stream_id(stream_name);
return '#stream-checkboxes [data-stream-id="' + stream_id + '"]'; return '#stream-checkboxes [data-stream-id="' + stream_id + '"]';
} }