mirror of
https://github.com/zulip/zulip.git
synced 2025-11-22 15:31:20 +00:00
This is the beginning of a fix for #22524 which converts several banners to a new style. As a part of that set of changes, this commit creates the shared template and warning styling. The resolved topic warning was picked (for no particular reason) to migrate first. Further commits updating other banners to follow.
13 lines
475 B
JavaScript
13 lines
475 B
JavaScript
"use strict";
|
|
|
|
const compose_banner = require("../../../static/js/compose_error");
|
|
const $ = require("../../zjsunit/zjquery");
|
|
|
|
exports.mock_banners = () => {
|
|
// zjquery doesn't support `remove`, which is used when clearing the compose box.
|
|
// TODO: improve how we test this so that we don't have to mock things like this.
|
|
for (const classname of Object.values(compose_banner.CLASSNAMES)) {
|
|
$(`#compose_banners .${classname}`).remove = () => {};
|
|
}
|
|
};
|