aboutsummaryrefslogtreecommitdiff
path: root/test/css-json.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/css-json.test.js')
-rw-r--r--test/css-json.test.js17
1 files changed, 6 insertions, 11 deletions
diff --git a/test/css-json.test.js b/test/css-json.test.js
index 87d24d6c..25f1ca75 100644
--- a/test/css-json.test.js
+++ b/test/css-json.test.js
@@ -20,15 +20,10 @@ import fs from 'fs';
import {describe, expect, test} from 'vitest';
import {formatRulesJson, generateRules, getTargets} from '../dev/generate-css-json.js';
-/** */
-function main() {
- describe('css-json', () => {
- test.each(getTargets())('css-json-test-%#', ({cssFilePath, overridesCssFilePath, outputPath}) => {
- const actual = fs.readFileSync(outputPath, {encoding: 'utf8'});
- const expected = formatRulesJson(generateRules(cssFilePath, overridesCssFilePath));
- expect(actual).toStrictEqual(expected);
- });
+describe('css-json', () => {
+ test.each(getTargets())('css-json-test-%#', ({cssFilePath, overridesCssFilePath, outputPath}) => {
+ const actual = fs.readFileSync(outputPath, {encoding: 'utf8'});
+ const expected = formatRulesJson(generateRules(cssFilePath, overridesCssFilePath));
+ expect(actual).toStrictEqual(expected);
});
-}
-
-main();
+});