minor: Clean up blank lines in tests.

This commit is contained in:
Steve Howell 2020-04-03 16:11:05 +00:00 committed by showell
parent b248b2681c
commit 2788ebdde7
41 changed files with 0 additions and 73 deletions

View File

@ -15,7 +15,6 @@ people.add({
people.initialize_current_user(42); people.initialize_current_user(42);
const regular_message = { const regular_message = {
sender_email: 'another@zulip.com', sender_email: 'another@zulip.com',
content: '<p>a message</p>', content: '<p>a message</p>',

View File

@ -69,7 +69,6 @@ function make_people() {
people.initialize_current_user(me.user_id); people.initialize_current_user(me.user_id);
} }
function activate_people() { function activate_people() {
presence.presence_info.clear(); presence.presence_info.clear();
@ -94,7 +93,6 @@ function activate_people() {
} }
} }
make_people(); make_people();
activate_people(); activate_people();
@ -209,7 +207,6 @@ run_test('bulk_data_hacks', () => {
user_ids = buddy_data.get_filtered_and_sorted_user_ids('p'); user_ids = buddy_data.get_filtered_and_sorted_user_ids('p');
assert.equal(user_ids.length, 998); assert.equal(user_ids.length, 998);
// Make our shrink limit higher, and go back to an empty search. // Make our shrink limit higher, and go back to an empty search.
// We won't get all 1000 users, just the present ones. // We won't get all 1000 users, just the present ones.
buddy_data.max_size_before_shrinking = 50000; buddy_data.max_size_before_shrinking = 50000;

View File

@ -5,7 +5,6 @@ set_global('reload', {});
zrequire('reload_state'); zrequire('reload_state');
zrequire('channel'); zrequire('channel');
const default_stub_xhr = 'default-stub-xhr'; const default_stub_xhr = 'default-stub-xhr';
function test_with_mock_ajax(test_params) { function test_with_mock_ajax(test_params) {
@ -38,7 +37,6 @@ function test_with_mock_ajax(test_params) {
check_ajax_options(ajax_options); check_ajax_options(ajax_options);
} }
run_test('basics', () => { run_test('basics', () => {
test_with_mock_ajax({ test_with_mock_ajax({
run_code: function () { run_code: function () {

View File

@ -179,7 +179,6 @@ run_test('validate', () => {
$("#sending-indicator").hide(); $("#sending-indicator").hide();
$("#compose-textarea").select(noop); $("#compose-textarea").select(noop);
const pm_pill_container = $.create('fake-pm-pill-container'); const pm_pill_container = $.create('fake-pm-pill-container');
$('#private_message_recipient').set_parent(pm_pill_container); $('#private_message_recipient').set_parent(pm_pill_container);
pm_pill_container.set_find_results('.input', $('#private_message_recipient')); pm_pill_container.set_find_results('.input', $('#private_message_recipient'));
@ -880,7 +879,6 @@ run_test('warn_if_private_stream_is_linked', () => {
for (const f of checks) { f(); } for (const f of checks) { f(); }
}); });
run_test('initialize', () => { run_test('initialize', () => {
// In this test we mostly do the setup stuff in addition to testing the // In this test we mostly do the setup stuff in addition to testing the
// normal workflow of the function. All the tests for the on functions are // normal workflow of the function. All the tests for the on functions are
@ -1105,7 +1103,6 @@ run_test('warn_if_mentioning_unsubscribed_user', () => {
return function () { assert(called); }; return function () { assert(called); };
}()), }()),
(function () { (function () {
let called; let called;
global.stub_templates(function (template_name, context) { global.stub_templates(function (template_name, context) {
@ -1138,7 +1135,6 @@ run_test('warn_if_mentioning_unsubscribed_user', () => {
for (const f of checks) { f(); } for (const f of checks) { f(); }
// Simulate that the row was added to the DOM. // Simulate that the row was added to the DOM.
const warning_row = $('<warning row>'); const warning_row = $('<warning row>');
@ -1620,7 +1616,6 @@ run_test('create_message_object', () => {
return s; return s;
}; };
let message = compose.create_message_object(); let message = compose.create_message_object();
assert.equal(message.to, sub.stream_id); assert.equal(message.to, sub.stream_id);
assert.equal(message.topic, 'lunch'); assert.equal(message.topic, 'lunch');

View File

@ -13,7 +13,6 @@ set_global('$', global.make_zjquery());
set_global('compose_pm_pill', { set_global('compose_pm_pill', {
}); });
set_global('hash_util', { set_global('hash_util', {
}); });

View File

@ -29,7 +29,6 @@ people.initialize_current_user(me.user_id);
people.add(alice); people.add(alice);
people.add(bob); people.add(bob);
run_test('set_focused_recipient', () => { run_test('set_focused_recipient', () => {
const sub = { const sub = {
stream_id: 101, stream_id: 101,

View File

@ -352,8 +352,6 @@ run_test('content_typeahead_selected', () => {
expected_value = '{ :octopus: '; expected_value = '{ :octopus: ';
assert.equal(actual_value, expected_value); assert.equal(actual_value, expected_value);
// mention // mention
fake_this.completing = 'mention'; fake_this.completing = 'mention';
@ -992,7 +990,6 @@ run_test('initialize', () => {
event.target.id = 'some_non_existing_id'; event.target.id = 'some_non_existing_id';
$('form#send_message_form').keydown(event); $('form#send_message_form').keydown(event);
// Setup jquery functions used in compose_textarea enter // Setup jquery functions used in compose_textarea enter
// handler. // handler.
let range_length = 0; let range_length = 0;
@ -1254,7 +1251,6 @@ run_test('begins_typeahead', () => {
assert_typeahead_equals("hello /poll", false); assert_typeahead_equals("hello /poll", false);
assert_typeahead_equals("\n/pol", false); assert_typeahead_equals("\n/pol", false);
assert_typeahead_equals("x/", false); assert_typeahead_equals("x/", false);
assert_typeahead_equals("```", false); assert_typeahead_equals("```", false);
assert_typeahead_equals("``` ", false); assert_typeahead_equals("``` ", false);

View File

@ -1284,7 +1284,6 @@ run_test('update_email', () => {
assert.deepEqual(filter.operands('stream'), ['steve@foo.com']); assert.deepEqual(filter.operands('stream'), ['steve@foo.com']);
}); });
run_test('error_cases', () => { run_test('error_cases', () => {
// This test just gives us 100% line coverage on defensive code that // This test just gives us 100% line coverage on defensive code that
// should not be reached unless we break other code. // should not be reached unless we break other code.

View File

@ -451,7 +451,6 @@ run_test('insert_message', () => {
assert.equal(inserted_message.content, 'example content'); assert.equal(inserted_message.content, 'example content');
}); });
/* /*
The previous example starts to get us out of the data layer of The previous example starts to get us out of the data layer of
@ -710,7 +709,6 @@ run_test('stream_list', () => {
const sidebar_helper = make_sidebar_helper(); const sidebar_helper = make_sidebar_helper();
const topic_list_helper = make_topic_list_helper(); const topic_list_helper = make_topic_list_helper();
// This is what we are testing! // This is what we are testing!
stream_list.update_streams_sidebar(); stream_list.update_streams_sidebar();

View File

@ -31,7 +31,6 @@ run_test('set_up_ids', () => {
}; };
}); });
function pill_html(value, data_id, img_src) { function pill_html(value, data_id, img_src) {
const has_image = img_src !== undefined; const has_image = img_src !== undefined;

View File

@ -272,7 +272,6 @@ run_test('initialize', () => {
test_backfill_idle(idle_config); test_backfill_idle(idle_config);
}); });
function simulate_narrow() { function simulate_narrow() {
const filter = { const filter = {
predicate: () => () => false, predicate: () => () => false,

View File

@ -15,7 +15,6 @@ zrequire('MessageListData', 'js/message_list_data');
zrequire('MessageListView', 'js/message_list_view'); zrequire('MessageListView', 'js/message_list_view');
const MessageList = zrequire('message_list').MessageList; const MessageList = zrequire('message_list').MessageList;
const with_overrides = global.with_overrides; // make lint happy const with_overrides = global.with_overrides; // make lint happy
function accept_all_filter() { function accept_all_filter() {
@ -287,7 +286,6 @@ run_test('local_echo', () => {
assert.equal(list.closest_id(54), 50); assert.equal(list.closest_id(54), 50);
assert.equal(list.closest_id(58), 60); assert.equal(list.closest_id(58), 60);
list = new MessageList({}); list = new MessageList({});
list.append([ list.append([
{id: 10}, {id: 20}, {id: 30}, {id: 20.02}, {id: 20.03}, {id: 40}, {id: 10}, {id: 20}, {id: 30}, {id: 20.02}, {id: 20.03}, {id: 40},

View File

@ -75,7 +75,6 @@ run_test('basics', () => {
mld.get(10).unread = false; mld.get(10).unread = false;
assert.equal(mld.first_unread_message_id(), 15); assert.equal(mld.first_unread_message_id(), 15);
mld.clear(); mld.clear();
assert_contents(mld, []); assert_contents(mld, []);
assert.equal(mld.closest_id(99), -1); assert.equal(mld.closest_id(99), -1);

View File

@ -362,7 +362,6 @@ run_test('merge_message_groups', () => {
assert_message_list_equal(result.rerender_messages_next_same_sender, [message1]); assert_message_list_equal(result.rerender_messages_next_same_sender, [message1]);
}()); }());
(function test_prepend_message_same_subject() { (function test_prepend_message_same_subject() {
const message1 = build_message_context(); const message1 = build_message_context();
@ -556,7 +555,6 @@ run_test('render_windows', () => {
list.add_messages(messages, {}); list.add_messages(messages, {});
} }
function verify_no_move_range(start, end) { function verify_no_move_range(start, end) {
// In our render window, there are up to 300 positions in // In our render window, there are up to 300 positions in
// the list where we can move the pointer without forcing // the list where we can move the pointer without forcing

View File

@ -80,7 +80,6 @@ run_test('get_and_set_muted_topics', () => {
blueslip.clear_test_data(); blueslip.clear_test_data();
assert.deepEqual(muting.get_muted_topics().sort(), [ assert.deepEqual(muting.get_muted_topics().sort(), [
[design.stream_id, 'typography'], [design.stream_id, 'typography'],
[social.stream_id, 'breakfast'], [social.stream_id, 'breakfast'],

View File

@ -38,7 +38,6 @@ set_global('search_pill_widget', {
}, },
}); });
const noop = () => {}; const noop = () => {};
// //
// We have strange hacks in narrow.activate to sleep 0 // We have strange hacks in narrow.activate to sleep 0

View File

@ -15,7 +15,6 @@ function set_filter(operators) {
narrow_state.set_current_filter(new Filter(operators)); narrow_state.set_current_filter(new Filter(operators));
} }
run_test('stream', () => { run_test('stream', () => {
assert.equal(narrow_state.public_operators(), undefined); assert.equal(narrow_state.public_operators(), undefined);
assert(!narrow_state.active()); assert(!narrow_state.active());
@ -48,7 +47,6 @@ run_test('stream', () => {
assert.equal(narrow_state.search_string(), 'stream:Test topic:Bar yo'); assert.equal(narrow_state.search_string(), 'stream:Test topic:Bar yo');
}); });
run_test('narrowed', () => { run_test('narrowed', () => {
narrow_state.reset_current_filter(); // not narrowed, basically narrow_state.reset_current_filter(); // not narrowed, basically
assert(!narrow_state.narrowed_to_pms()); assert(!narrow_state.narrowed_to_pms());
@ -223,7 +221,6 @@ run_test('topic', () => {
assert.equal(narrow_state.topic(), undefined); assert.equal(narrow_state.topic(), undefined);
}); });
run_test('stream', () => { run_test('stream', () => {
set_filter([]); set_filter([]);
assert.equal(narrow_state.stream(), undefined); assert.equal(narrow_state.stream(), undefined);

View File

@ -20,7 +20,6 @@ const _navigator = {
}; };
set_global('navigator', _navigator); set_global('navigator', _navigator);
zrequire('alert_words'); zrequire('alert_words');
zrequire('muting'); zrequire('muting');
zrequire('stream_data'); zrequire('stream_data');
@ -249,7 +248,6 @@ run_test('message_is_notifiable', () => {
assert.equal(notifications.message_is_notifiable(message), true); assert.equal(notifications.message_is_notifiable(message), true);
}); });
run_test('basic_notifications', () => { run_test('basic_notifications', () => {
let n; // Object for storing all notification data for assertions. let n; // Object for storing all notification data for assertions.

View File

@ -1,7 +1,6 @@
set_global('zxcvbn', zrequire('zxcvbn', 'zxcvbn')); set_global('zxcvbn', zrequire('zxcvbn', 'zxcvbn'));
zrequire('common'); zrequire('common');
run_test('basics', () => { run_test('basics', () => {
let accepted; let accepted;
let password; let password;

View File

@ -24,7 +24,6 @@ set_global('page_params', {
}); });
set_global('rows', {}); set_global('rows', {});
set_global('message_viewport', { set_global('message_viewport', {
height: () => 500, height: () => 500,
}); });

View File

@ -404,7 +404,6 @@ run_test('add_and_remove_reaction', () => {
current_emojis = reactions.get_emojis_used_by_user_for_message_id(1001); current_emojis = reactions.get_emojis_used_by_user_for_message_id(1001);
assert.deepEqual(current_emojis, ['smile', 'inactive_realm_emoji']); assert.deepEqual(current_emojis, ['smile', 'inactive_realm_emoji']);
// Now add Cali's realm_emoji reaction. // Now add Cali's realm_emoji reaction.
const cali_event = { const cali_event = {
message_id: 1001, message_id: 1001,

View File

@ -216,7 +216,6 @@ run_test('initizalize', () => {
}; };
}; };
operators = []; operators = [];
_setup(''); _setup('');
@ -252,7 +251,6 @@ run_test('initizalize', () => {
assert(!is_blurred); assert(!is_blurred);
assert(!search_button.prop('disabled')); assert(!search_button.prop('disabled'));
_setup('ver'); _setup('ver');
ev.which = 13; ev.which = 13;
search_query_box.is = return_true; search_query_box.is = return_true;

View File

@ -188,7 +188,6 @@ run_test('initialize', () => {
}; };
}; };
operators = [{ operators = [{
negated: false, negated: false,
operator: 'search', operator: 'search',
@ -216,7 +215,6 @@ run_test('initialize', () => {
assert(is_blurred); assert(is_blurred);
assert(search_button.prop('disabled')); assert(search_button.prop('disabled'));
_setup('ver'); _setup('ver');
search.is_using_input_method = true; search.is_using_input_method = true;
func(ev); func(ev);
@ -224,7 +222,6 @@ run_test('initialize', () => {
assert(!is_blurred); assert(!is_blurred);
assert(!search_button.prop('disabled')); assert(!search_button.prop('disabled'));
_setup('ver'); _setup('ver');
ev.which = 13; ev.which = 13;
search_query_box.is = return_true; search_query_box.is = return_true;

View File

@ -6,7 +6,6 @@ set_global('message_store', {
user_ids: () => [], user_ids: () => [],
}); });
const settings_config = zrequire('settings_config'); const settings_config = zrequire('settings_config');
page_params.realm_email_address_visibility = page_params.realm_email_address_visibility =
settings_config.email_address_visibility_values.admins_only.code; settings_config.email_address_visibility_values.admins_only.code;
@ -199,7 +198,6 @@ run_test('private_suggestions', () => {
]; ];
assert.deepEqual(suggestions.strings, expected); assert.deepEqual(suggestions.strings, expected);
// Users can enter bizarre queries, and if they do, we want to // Users can enter bizarre queries, and if they do, we want to
// be conservative with suggestions. // be conservative with suggestions.
query = 'near:3'; query = 'near:3';

View File

@ -5,7 +5,6 @@ set_global('message_store', {
user_ids: () => [], user_ids: () => [],
}); });
const settings_config = zrequire('settings_config'); const settings_config = zrequire('settings_config');
page_params.realm_email_address_visibility = page_params.realm_email_address_visibility =
settings_config.email_address_visibility_values.admins_only.code; settings_config.email_address_visibility_values.admins_only.code;
@ -29,7 +28,6 @@ const bob = {
user_id: 42, user_id: 42,
}; };
function init() { function init() {
people.init(); people.init();
people.add(bob); people.add(bob);
@ -195,7 +193,6 @@ run_test('private_suggestions', () => {
]; ];
assert.deepEqual(suggestions.strings, expected); assert.deepEqual(suggestions.strings, expected);
// Users can enter bizarre queries, and if they do, we want to // Users can enter bizarre queries, and if they do, we want to
// be conservative with suggestions. // be conservative with suggestions.
query = 'is:private near:3'; query = 'is:private near:3';
@ -985,7 +982,6 @@ run_test('people_suggestions', () => {
people.add(bob); people.add(bob);
people.add(alice); people.add(alice);
topic_data.reset(); topic_data.reset();
let suggestions = search.get_suggestions_legacy(query); let suggestions = search.get_suggestions_legacy(query);

View File

@ -34,7 +34,6 @@ set_global('ui_report', {
show_error: function () { return false; }, show_error: function () { return false; },
}); });
server_events.home_view_loaded(); server_events.home_view_loaded();
run_test('message_event', () => { run_test('message_event', () => {
@ -77,7 +76,6 @@ run_test('pointer_event', () => {
assert.equal(global.pointer.server_furthest_read, event.pointer); assert.equal(global.pointer.server_furthest_read, event.pointer);
}); });
// Start blueslip tests here // Start blueslip tests here
const setup = function () { const setup = function () {
@ -118,7 +116,6 @@ run_test('event_dispatch_error', () => {
blueslip.clear_test_data(); blueslip.clear_test_data();
}); });
run_test('event_new_message_error', () => { run_test('event_new_message_error', () => {
setup(); setup();

View File

@ -285,7 +285,6 @@ function test_submit_settings_form(submit_form) {
}; };
assert.deepEqual(data, expected_value); assert.deepEqual(data, expected_value);
subsection = 'user-defaults'; subsection = 'user-defaults';
ev.currentTarget = `#org-submit-${subsection}`; ev.currentTarget = `#org-submit-${subsection}`;
stubs = createSaveButtons(subsection); stubs = createSaveButtons(subsection);
@ -321,7 +320,6 @@ function test_submit_settings_form(submit_form) {
}; };
assert.deepEqual(data, expected_value); assert.deepEqual(data, expected_value);
// Testing only once for since callback is same for all cases // Testing only once for since callback is same for all cases
success_callback(); success_callback();
assert.equal(stubs.props.hidden, true); assert.equal(stubs.props.hidden, true);
@ -423,7 +421,6 @@ function test_change_allow_subdomains(change_allow_subdomains) {
const domain_obj = $.create('domain object'); const domain_obj = $.create('domain object');
domain_obj.text(domain); domain_obj.text(domain);
const elem_obj = $.create('<elem html>'); const elem_obj = $.create('<elem html>');
const parents_obj = $.create('parents object'); const parents_obj = $.create('parents object');
@ -709,7 +706,6 @@ function test_discard_changes_button(discard_changes) {
message_content_edit_limit_minutes.attr('id', 'id_realm_message_content_edit_limit_minutes'); message_content_edit_limit_minutes.attr('id', 'id_realm_message_content_edit_limit_minutes');
message_content_delete_limit_minutes.attr('id', 'id_realm_message_content_delete_limit_minutes'); message_content_delete_limit_minutes.attr('id', 'id_realm_message_content_delete_limit_minutes');
const discard_button_parent = $('.org-subsection-parent'); const discard_button_parent = $('.org-subsection-parent');
discard_button_parent.find = () => [ discard_button_parent.find = () => [
allow_edit_history, allow_edit_history,

View File

@ -3,7 +3,6 @@ set_global('$', global.make_zjquery());
set_global('loading', {}); set_global('loading', {});
set_global('Sortable', {create: () => {}}); set_global('Sortable', {create: () => {}});
const SHORT_TEXT_ID = 1; const SHORT_TEXT_ID = 1;
const CHOICE_ID = 3; const CHOICE_ID = 3;
const EXTERNAL_ACCOUNT_ID = 7; const EXTERNAL_ACCOUNT_ID = 7;

View File

@ -459,7 +459,6 @@ run_test('sort_streams', () => {
return sub.name !== 'cars'; return sub.name !== 'cars';
}; };
let appended_elems; let appended_elems;
$('#stream_filters').append = function (elems) { $('#stream_filters').append = function (elems) {
appended_elems = elems; appended_elems = elems;
@ -592,7 +591,6 @@ run_test('separators_only_pinned', () => {
}; };
add_row(RomeSub); add_row(RomeSub);
let appended_elems; let appended_elems;
$('#stream_filters').append = function (elems) { $('#stream_filters').append = function (elems) {
appended_elems = elems; appended_elems = elems;

View File

@ -123,7 +123,6 @@ run_test('update_count_in_dom', () => {
'<starred-value>' '<starred-value>'
); );
top_left_corner.update_dom_with_unread_counts(counts); top_left_corner.update_dom_with_unread_counts(counts);
top_left_corner.update_starred_count(444); top_left_corner.update_starred_count(444);

View File

@ -86,7 +86,6 @@ run_test('is_complete_for_stream_id', () => {
topic_data.is_complete_for_stream_id(sub.stream_id), topic_data.is_complete_for_stream_id(sub.stream_id),
true); true);
// Now simulate a more recent message id. // Now simulate a more recent message id.
message_list.all.first = () => { message_list.all.first = () => {
return {id: sub.first_message_id + 1}; return {id: sub.first_message_id + 1};

View File

@ -251,7 +251,6 @@ run_test('topics', () => {
assert.deepEqual(next_topic(undefined, undefined), assert.deepEqual(next_topic(undefined, undefined),
{stream: 1, topic: '1a'}); {stream: 1, topic: '1a'});
// Now test the deeper function that is wired up to // Now test the deeper function that is wired up to
// real functions stream_data/stream_sort/unread. // real functions stream_data/stream_sort/unread.

View File

@ -7,7 +7,6 @@ const settings_config = zrequire('settings_config');
page_params.realm_email_address_visibility = page_params.realm_email_address_visibility =
settings_config.email_address_visibility_values.admins_only.code; settings_config.email_address_visibility_values.admins_only.code;
set_global('Handlebars', global.make_handlebars()); set_global('Handlebars', global.make_handlebars());
zrequire('recent_senders'); zrequire('recent_senders');
zrequire('pm_conversations'); zrequire('pm_conversations');

View File

@ -45,7 +45,6 @@ run_test('basics', () => {
assert.deepEqual(typing_data.get_group_typists([20, 40]), [20]); assert.deepEqual(typing_data.get_group_typists([20, 40]), [20]);
}); });
run_test('timers', () => { run_test('timers', () => {
const events = {}; const events = {};

View File

@ -68,7 +68,6 @@ for (const mod of ignore_modules) {
emoji.emojis_by_name = new Map(); emoji.emojis_by_name = new Map();
util.is_mobile = () => false; util.is_mobile = () => false;
global.stub_templates(() => 'some-html'); global.stub_templates(() => 'some-html');
ui.get_scroll_element = element => element; ui.get_scroll_element = element => element;
@ -181,7 +180,6 @@ $("#private_message_recipient").typeahead = () => {};
$("#compose-textarea").typeahead = () => {}; $("#compose-textarea").typeahead = () => {};
$("#search_query").typeahead = () => {}; $("#search_query").typeahead = () => {};
const value_stub = $.create('value'); const value_stub = $.create('value');
const count_stub = $.create('count'); const count_stub = $.create('count');
count_stub.set_find_results('.value', value_stub); count_stub.set_find_results('.value', value_stub);

View File

@ -322,7 +322,6 @@ run_test('num_unread_for_topic', () => {
assert.deepEqual(msg_ids, []); assert.deepEqual(msg_ids, []);
}); });
run_test('home_messages', () => { run_test('home_messages', () => {
stream_data.is_subscribed = function () { stream_data.is_subscribed = function () {
return true; return true;
@ -481,7 +480,6 @@ run_test('private_messages', () => {
test_notifiable_count(counts.home_unread_messages, 0); test_notifiable_count(counts.home_unread_messages, 0);
}); });
run_test('mentions', () => { run_test('mentions', () => {
let counts = unread.get_counts(); let counts = unread.get_counts();
assert.equal(counts.mentioned_message_count, 0); assert.equal(counts.mentioned_message_count, 0);

View File

@ -381,7 +381,6 @@ run_test('uppy_events', () => {
let uppy_cancel_all_counter = 0; let uppy_cancel_all_counter = 0;
let state = {}; let state = {};
function uppy_stub() { function uppy_stub() {
return { return {
setMeta: () => {}, setMeta: () => {},

View File

@ -6,7 +6,6 @@ set_global('blueslip', global.make_zblueslip());
set_global('document', {}); set_global('document', {});
const util = zrequire('util'); const util = zrequire('util');
run_test('CachedValue', () => { run_test('CachedValue', () => {
let x = 5; let x = 5;

View File

@ -17,7 +17,6 @@ set_global('blueslip', global.make_zblueslip());
set_global('narrow_state', {}); set_global('narrow_state', {});
set_global('current_msg_list', {}); set_global('current_msg_list', {});
run_test('activate', () => { run_test('activate', () => {
// Both widgetize.activate and widgetize.handle_event are tested // Both widgetize.activate and widgetize.handle_event are tested
// here to use the "caching" of widgets // here to use the "caching" of widgets

View File

@ -19,7 +19,6 @@ Read the following contents for an overview of how zblueslip works. Also take a
look at `node_tests/people_errors.js` for actual usage of this module. look at `node_tests/people_errors.js` for actual usage of this module.
*/ */
// The first thing we do to use zblueslip is patch our global namespace // The first thing we do to use zblueslip is patch our global namespace
// with zblueslip as follows. This call gives us our own instance of a // with zblueslip as follows. This call gives us our own instance of a
// zblueslip stub variable. // zblueslip stub variable.

View File

@ -22,14 +22,12 @@ The code we are testing lives here:
*/ */
// The first thing we do to use zjquery is patch our global namespace // The first thing we do to use zjquery is patch our global namespace
// with zjquery as follows. This call gives us our own instance of a // with zjquery as follows. This call gives us our own instance of a
// zjquery stub variable. Like with real jQuery, the '$' function will // zjquery stub variable. Like with real jQuery, the '$' function will
// be the gateway to a bigger API. // be the gateway to a bigger API.
set_global('$', global.make_zjquery()); set_global('$', global.make_zjquery());
run_test('basics', () => { run_test('basics', () => {
// Let's create a sample piece of code to test: // Let's create a sample piece of code to test: