18 lines
585 B
JavaScript
18 lines
585 B
JavaScript
import test from 'node:test';
|
|
import assert from 'node:assert/strict';
|
|
import { runScript } from './helpers/run-script.js';
|
|
|
|
test('週報月報年報固定回傳 REPORT_UNAVAILABLE', async () => {
|
|
const result = await runScript('report.js', ['--repo', 'plugins/tea-sdlc', '--week'], {
|
|
env: { TEA_CONFIG: '/tmp/nonexistent-tea-config' },
|
|
});
|
|
assert.equal(result.code, 1);
|
|
assert.deepEqual(result.json, {
|
|
ok: false,
|
|
error: {
|
|
code: 'REPORT_UNAVAILABLE',
|
|
message: '週報、月報、年報目前不可用;時間追蹤功能已移除。',
|
|
},
|
|
});
|
|
});
|