Commit 1439fa01 authored by nanahira's avatar nanahira

bump to Koishi 4.8

parent afec6fe4
import { App } from 'koishi'; import { Context } from 'koishi';
import TargetPlugin from '../src'; import TargetPlugin from '../src';
import ConsolePlugin from '@koishijs/plugin-console'; import ConsolePlugin from '@koishijs/plugin-console';
import SandboxPlugin from '@koishijs/plugin-sandbox'; import SandboxPlugin from '@koishijs/plugin-sandbox';
...@@ -6,7 +6,7 @@ import DatabasePlugin from '@koishijs/plugin-database-memory'; ...@@ -6,7 +6,7 @@ import DatabasePlugin from '@koishijs/plugin-database-memory';
import * as Help from '@koishijs/plugin-help'; import * as Help from '@koishijs/plugin-help';
import ExtrasInDev from './extras'; import ExtrasInDev from './extras';
const app = new App({ const app = new Context({
port: 14514, port: 14514,
host: 'localhost', host: 'localhost',
prefix: '.', prefix: '.',
......
import { App } from 'koishi'; import { Context } from 'koishi';
import TargetPlugin, { UseCache } from '../src'; import TargetPlugin, { UseCache } from '../src';
import { CacheKey, WithKey } from 'aragami'; import { CacheKey, WithKey } from 'aragami';
import { DefinePlugin, Provide, StarterPlugin } from 'koishi-thirdeye'; import { DefinePlugin, Provide, StarterPlugin } from 'koishi-thirdeye';
describe('Test of plugin.', () => { describe('Test of plugin.', () => {
let app: App; let app: Context;
beforeEach(async () => { beforeEach(async () => {
app = new App(); app = new Context();
app.plugin(TargetPlugin, { app.plugin(TargetPlugin, {
// redis: { uri: 'redis://localhost:6379' }, // redis: { uri: 'redis://localhost:6379' },
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment