mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Some files already were using `noop` in place of `() => {}`.
It's both clearer what it means and is easier to type.
This updates all test files to fully use `noop`, and
adds a shared import from the test lib file.
15 lines
505 B
JavaScript
15 lines
505 B
JavaScript
"use strict";
|
|
|
|
const {noop} = require("./test");
|
|
const $ = require("./zjquery");
|
|
|
|
exports.mock_stream_header_colorblock = () => {
|
|
const $stream_selection_dropdown = $("#compose_select_recipient_widget_wrapper");
|
|
const $stream_header_colorblock = $(".stream_header_colorblock");
|
|
$("#compose_select_recipient_widget_wrapper .stream_header_colorblock").css = noop;
|
|
$stream_selection_dropdown.set_find_results(
|
|
".stream_header_colorblock",
|
|
$stream_header_colorblock,
|
|
);
|
|
};
|