aboutsummaryrefslogtreecommitdiff
path: root/test/css-json.test.js
diff options
context:
space:
mode:
authorCashew <52880648+Scrub1492@users.noreply.github.com>2024-01-06 08:00:37 +0700
committerGitHub <noreply@github.com>2024-01-06 01:00:37 +0000
commit60276d41ffd90044acc2f95e70b9b0c9a770417a (patch)
tree0bd08871a14d025007ba5453691b27976c39d77d /test/css-json.test.js
parentd17ca4b2ff6e6f359dc5ea72c133f99fb016effd (diff)
Test updates (#501)
* update tests * japanese-util updates * update json-schema tests
Diffstat (limited to 'test/css-json.test.js')
-rw-r--r--test/css-json.test.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/css-json.test.js b/test/css-json.test.js
index e4155ca3..588651d2 100644
--- a/test/css-json.test.js
+++ b/test/css-json.test.js
@@ -17,17 +17,17 @@
*/
import fs from 'fs';
-import {expect, test} from 'vitest';
+import {describe, expect, test} from 'vitest';
import {formatRulesJson, generateRules, getTargets} from '../dev/generate-css-json';
/** */
function main() {
- test('css-json', () => {
- for (const {cssFilePath, overridesCssFilePath, outputPath} of getTargets()) {
+ 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);
- }
+ });
});
}