mirror of
https://github.com/koishijs/novelai-bot
synced 2025-01-09 04:37:54 +08:00
15 lines
452 B
TypeScript
15 lines
452 B
TypeScript
import { describe, test } from 'node:test'
|
|
import * as novelai from '../src'
|
|
import { Context } from 'koishi'
|
|
import mock from '@koishijs/plugin-mock'
|
|
|
|
describe('koishi-plugin-novelai', () => {
|
|
test('parse input', () => {
|
|
const ctx = new Context()
|
|
ctx.plugin(mock)
|
|
const session = ctx.bots[0].session({})
|
|
const fork = ctx.plugin(novelai)
|
|
console.log(novelai.parseInput(session, '<lora:skr2:1>,1girl', fork.config, false))
|
|
})
|
|
})
|