diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-16 19:33:24 -0500 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-17 00:33:24 +0000 | 
| commit | 1e69210b53151f31140bb1fbdc9f3d71fa181630 (patch) | |
| tree | c8e824b531bf0fc46897ee7cf93fe375b5da946e /test/profile-conditions-util.test.js | |
| parent | 9432e4bb117869860db0aaa42a318fe73002d1c5 (diff) | |
Make vitests idiomatic (#677)
Diffstat (limited to 'test/profile-conditions-util.test.js')
| -rw-r--r-- | test/profile-conditions-util.test.js | 17 | 
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(); +}); |