Files
NapCatQQ/.pnpm-store/v3/files/00/a94adef79061920ab2a70a360f2777cf86caea79a3b5d18d870c4887e04c1f323ce447dd6e574b455d0743315ef437fb0ae347f9cc42f667093d573507ad1f
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

30 lines
682 B
Plaintext

const {
parse,
stringify,
transforms: { align },
} = require('../../lib/index.cjs');
test('align - ignore trailing right space', () => {
const source = `
/**
* Description may go
* over multiple lines followed by @tags
* @param {string} name
* @param {any} value the value parameter
*/`;
const expected = `
/**
* Description may go
* over multiple lines followed by @tags
* @param {string} name
* @param {any} value the value parameter
*/`.slice(1);
const parsed = parse(source);
const aligned = align()(parsed[0]);
const stringified = stringify(aligned);
expect(stringified).toEqual(expected);
});