mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user