summaryrefslogtreecommitdiff
path: root/test/profile-conditions-util.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/profile-conditions-util.test.js')
-rw-r--r--test/profile-conditions-util.test.js17
1 files changed, 2 insertions, 15 deletions
diff --git a/test/profile-conditions-util.test.js b/test/profile-conditions-util.test.js
index 261225d9..6de5ad1d 100644
--- a/test/profile-conditions-util.test.js
+++ b/test/profile-conditions-util.test.js
@@ -19,8 +19,7 @@
import {describe, expect, test} from 'vitest';
import {createSchema, normalizeContext} from '../ext/js/background/profile-conditions-util.js';
-/** */
-function testNormalizeContext() {
+describe('Profile conditions utilities', () => {
describe('NormalizeContext', () => {
/** @type {{context: import('settings').OptionsContext, expected: import('profile-conditions-util').NormalizedOptionsContext}[]} */
const data = [
@@ -54,10 +53,7 @@ function testNormalizeContext() {
expect(actual).toStrictEqual(expected);
});
});
-}
-/** */
-function testSchemas() {
describe('Schemas', () => {
/* eslint-disable @stylistic/no-multi-spaces */
/** @type {{conditionGroups: import('settings').ProfileConditionGroup[], expectedSchema?: import('ext/json-schema').Schema, inputs?: {expected: boolean, context: import('settings').OptionsContext}[]}[]} */
@@ -1113,13 +1109,4 @@ function testSchemas() {
}
});
});
-}
-
-
-/** */
-function main() {
- testNormalizeContext();
- testSchemas();
-}
-
-main();
+});