Files
NapCatQQ/.pnpm-store/v3/files/f8/d24d93634884d954e1188ddd8d5ae13b79f677ea7561fbe5fbdac19854755720f9805d66b4d3f198c5b92673484526b5352612294f113183b19c7f52fe69b6
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

33 lines
784 B
Plaintext

const {
parse,
stringify,
transforms: { flow, indent, align },
} = require('../../lib/index.cjs');
test('align + indent', () => {
const source = `
/**
* Description may go
* over multiple lines followed by @tags
*
* @my-tag {my.type} my-name description line 1
description line 2
* description line 3
*/`;
const expected = `
/**
* Description may go
* over multiple lines followed by @tags
*
* @my-tag {my.type} my-name description line 1
description line 2
* description line 3
*/`;
const parsed = parse(source);
const transform = flow(indent(4), align());
const out = stringify(transform(parsed[0]));
expect(out).toBe(expected.slice(1));
});