init with react+axum+spacetimedb
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-04-26 18:06:23 +08:00
commit cbc27bad4a
20199 changed files with 883714 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
import { describe, expect, it } from 'vitest';
import { buildContentDiffReport } from './contentDiffReport';
describe('contentDiffReport', () => {
it('reports differences between profile/campaign versions', () => {
const report = buildContentDiffReport({
previousProfile: {
summary: '旧摘要',
scenarioPackId: 'scenario-old',
campaignPackId: 'campaign-old',
} as never,
nextProfile: {
summary: '新摘要',
scenarioPackId: 'scenario-new',
campaignPackId: 'campaign-new',
} as never,
previousCampaignPack: {
authoringStyle: 'classic',
actTemplates: [],
} as never,
nextCampaignPack: {
authoringStyle: 'grim',
actTemplates: [{}, {}],
} as never,
});
expect(report.changedFields.length).toBeGreaterThan(0);
});
});