feat(版本详情): 接入计划时间与日期选择
This commit is contained in:
25
apps/web/lib/bug.test.ts
Normal file
25
apps/web/lib/bug.test.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
import type { Bug } from './bug';
|
||||
|
||||
test('bug supports planned fix time', () => {
|
||||
const bug: Bug = {
|
||||
id: 'bug-1',
|
||||
bugNo: 'BUG-001',
|
||||
versionId: 'version-1',
|
||||
testCaseId: 'tc-1',
|
||||
title: 'cannot save',
|
||||
description: 'save button has no response',
|
||||
severity: 'major',
|
||||
priority: 'P1',
|
||||
reportedBy: 'QA',
|
||||
assigneeId: 'Dev',
|
||||
status: 'open',
|
||||
plannedFixAt: '2026-07-01T18:00:00.000Z',
|
||||
createdAt: '2026-06-25T00:00:00.000Z',
|
||||
updatedAt: '2026-06-25T00:00:00.000Z',
|
||||
};
|
||||
|
||||
assert.equal(bug.plannedFixAt, '2026-07-01T18:00:00.000Z');
|
||||
});
|
||||
Reference in New Issue
Block a user