mirror of https://github.com/zulip/zulip.git
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:
parent
48102c15a3
commit
39c3a02736
|
@ -222,7 +222,7 @@ exports.wait_for_message_fully_processed = function (content) {
|
|||
- does it look to have been
|
||||
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) {
|
||||
return false;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
var common = require("../casper_lib/common.js");
|
||||
|
||||
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 + '"]';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue