Fix linting and tests

This commit is contained in:
Max Leiter 2022-05-01 00:48:47 -07:00
parent a8935376a1
commit 46de99d50e
No known key found for this signature in database
GPG key ID: A3512F2F2F17EBDA
3 changed files with 19 additions and 14 deletions

View file

@ -369,12 +369,12 @@ p {
.context-menu-action-revoke-mode::before { content: "\f068"; /* http://fontawesome.io/icon/minus/ */ }
.context-menu-network::before { content: "\f233"; /* https://fontawesome.com/icons/server?style=solid */ }
.context-menu-edit::before { content: "\f303"; /* https://fontawesome.com/icons/pencil-alt?style=solid */ }
.context-menu-clear-favorites::before,
.context-menu-clear-history::before { content: "\f1f8"; /* https://fontawesome.com/icons/trash?style=solid */ }
.context-menu-mute::before { content: "\f6a9"; /* https://fontawesome.com/v5.15/icons/volume-mute?style=solid */ }
.context-menu-favorite::before { content: "\f005"; /* http://fontawesome.io/icon/star/ */ }
.channel-list-item .not-secure-icon::before {
content: "\f071"; /* https://fontawesome.com/icons/exclamation-triangle?style=solid */
}
@ -512,7 +512,6 @@ p {
color: #2ecc40;
}
#chat .msg[data-type="action"] .from::before {
content: "\f005"; /* http://fontawesome.io/icon/star/ */
}

View file

@ -220,7 +220,8 @@ describe("Chan", function () {
"topic",
"type",
"unread",
"users"
"users",
"favorite"
);
});

View file

@ -79,12 +79,17 @@ describe("Network", function () {
saslAccount: "testaccount",
saslPassword: "testpassword",
channels: [
new Chan({name: "#thelounge", key: "", muted: false}),
new Chan({name: "&foobar", key: "", muted: false}),
new Chan({name: "#secret", key: "foo", muted: false}),
new Chan({name: "&secure", key: "bar", muted: true}),
new Chan({name: "Channel List", type: Chan.Type.SPECIAL}),
new Chan({name: "PrivateChat", type: Chan.Type.QUERY, muted: true}),
new Chan({name: "#thelounge", key: "", muted: false, favorite: true}),
new Chan({name: "&foobar", key: "", muted: false, favorite: false}),
new Chan({name: "#secret", key: "foo", muted: false, favorite: true}),
new Chan({name: "&secure", key: "bar", muted: true, favorite: false}),
new Chan({name: "Channel List", type: Chan.Type.SPECIAL, favorite: false}),
new Chan({
name: "PrivateChat",
type: Chan.Type.QUERY,
muted: true,
favorite: false,
}),
],
});
network.setNick("chillin`");
@ -113,11 +118,11 @@ describe("Network", function () {
proxyPassword: "",
proxyUsername: "",
channels: [
{name: "#thelounge", key: "", muted: false},
{name: "&foobar", key: "", muted: false},
{name: "#secret", key: "foo", muted: false},
{name: "&secure", key: "bar", muted: true},
{name: "PrivateChat", type: "query", muted: true},
{name: "#thelounge", key: "", muted: false, favorite: true},
{name: "&foobar", key: "", muted: false, favorite: false},
{name: "#secret", key: "foo", muted: false, favorite: true},
{name: "&secure", key: "bar", muted: true, favorite: false},
{name: "PrivateChat", type: "query", muted: true, favorite: false},
],
ignoreList: [],
});