lint
This commit is contained in:
977 files changed
+198426
-158324
No files matched your search
@@ -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 });
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user