test(server): build cron, trace and held-action stores on WaggleDB (P1.5)
These stores take Waggle's own database since ADR-0007; the tests still handed them a MindDB. Only the store construction changes.
This commit is contained in:
@@ -2,17 +2,17 @@ import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest';
|
||||
import * as fs from 'node:fs';
|
||||
import * as path from 'node:path';
|
||||
import * as os from 'node:os';
|
||||
import { MindDB, CronStore } from '@waggle/core';
|
||||
import { WaggleDB, CronStore } from '@waggle/core';
|
||||
import { LocalScheduler } from '../src/local/cron.js';
|
||||
|
||||
describe('LocalScheduler', () => {
|
||||
let tmpDir: string;
|
||||
let db: MindDB;
|
||||
let db: WaggleDB;
|
||||
let store: CronStore;
|
||||
|
||||
beforeEach(() => {
|
||||
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'waggle-sched-'));
|
||||
db = new MindDB(path.join(tmpDir, 'test.mind'));
|
||||
db = new WaggleDB(path.join(tmpDir, 'waggle.db'));
|
||||
store = new CronStore(db);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user