This commit is contained in:
DrSmoothl committed 2026-10-12 15:43:34 +08:00
1 parent effeb66554
commit 7c0519f75f
977 files changed
+198426 -158324

No files matched your search

+10 -8
View File
@@ -2,13 +2,15 @@ import { describe, expect, it } from 'vitest';
import { normalizeOneBotConfig } from '../src/lib/onebot-config';
describe('normalizeOneBotConfig history sync', () => {
it('defaults older payloads to disabled', () => {
expect(normalizeOneBotConfig({}).historySync).toEqual({ enabled: false });
});
it('defaults older payloads to disabled', () => {
expect(normalizeOneBotConfig({}).historySync).toEqual({ enabled: false });
});
it('preserves an explicit per-account opt-in', () => {
expect(normalizeOneBotConfig({
historySync: { enabled: true },
}).historySync).toEqual({ enabled: true });
});
it('preserves an explicit per-account opt-in', () => {
expect(
normalizeOneBotConfig({
historySync: { enabled: true },
}).historySync,
).toEqual({ enabled: true });
});
});