Merge pull request #21385 from Snuffleupagus/AppOptions-unittest-EVENT_DISPATCH

Extend the `AppOptions` unit-tests to also cover the `EVENT_DISPATCH` option-kind
This commit is contained in:
Tim van der Meij 2026-06-04 20:36:17 +02:00 committed by GitHub
commit 0cc139fdfc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,10 +19,16 @@ import { objectSize } from "../../src/shared/util.js";
describe("AppOptions", function () {
it("checks that getAll returns data, for every OptionKind", function () {
const KIND_NAMES = ["BROWSER", "VIEWER", "API", "WORKER", "PREFERENCE"];
expect(Object.keys(OptionKind)).toEqual([
"BROWSER",
"VIEWER",
"API",
"WORKER",
"EVENT_DISPATCH",
"PREFERENCE",
]);
for (const name of KIND_NAMES) {
const kind = OptionKind[name];
for (const kind of Object.values(OptionKind)) {
expect(typeof kind).toEqual("number");
const options = AppOptions.getAll(kind);