lint: Add JS indentation eslint rules for node_tests.

The only difference between this as the main project's lint rules is
that we dont have the OuterIIFE setting.
This commit is contained in:
Tim Abbott
2018-05-06 18:30:13 -07:00
parent ed299feb00
commit 6e149a7594
30 changed files with 490 additions and 443 deletions

View File

@@ -513,25 +513,25 @@ zrequire('marked', 'third/marked/lib/marked');
}());
(function test_in_home_view() {
var tony = {
stream_id: 999,
name: 'tony',
subscribed: true,
in_home_view: true,
};
var tony = {
stream_id: 999,
name: 'tony',
subscribed: true,
in_home_view: true,
};
var jazy = {
stream_id: 500,
name: 'jazy',
subscribed: false,
in_home_view: false,
};
var jazy = {
stream_id: 500,
name: 'jazy',
subscribed: false,
in_home_view: false,
};
stream_data.add_sub('tony', tony);
stream_data.add_sub('jazy', jazy);
assert(stream_data.name_in_home_view('tony'));
assert(!stream_data.name_in_home_view('jazy'));
assert(!stream_data.name_in_home_view('EEXISTS'));
stream_data.add_sub('tony', tony);
stream_data.add_sub('jazy', jazy);
assert(stream_data.name_in_home_view('tony'));
assert(!stream_data.name_in_home_view('jazy'));
assert(!stream_data.name_in_home_view('EEXISTS'));
}());
(function test_notifications_in_home_view() {