mirror of
https://github.com/thelounge/thelounge
synced 2024-11-22 12:03:11 +00:00
b7540b5827
This decouples the rest of the server from the client
14 lines
412 B
TypeScript
14 lines
412 B
TypeScript
import {expect} from "chai";
|
|
import {condensedTypes} from "../../shared/irc";
|
|
|
|
describe(".condensedTypes", function () {
|
|
it("should be a non-empty array", function () {
|
|
expect(condensedTypes).to.be.an.instanceof(Set).that.is.not.empty;
|
|
});
|
|
|
|
it("should only contain ASCII strings", function () {
|
|
condensedTypes.forEach((type) => {
|
|
expect(type).to.be.a("string").that.does.match(/^\w+$/);
|
|
});
|
|
});
|
|
});
|