mirror of
https://github.com/yexi-by/dsh-unrestricted.git
synced 2026-11-27 10:20:22 +08:00
20 lines
810 B
JavaScript
20 lines
810 B
JavaScript
import assert from 'node:assert/strict'
|
|
import { readFile } from 'node:fs/promises'
|
|
import { test } from 'node:test'
|
|
|
|
const manifest = JSON.parse(await readFile(new URL('../package.json', import.meta.url), 'utf8'))
|
|
|
|
test('declares the current client renderer, settings dependencies, and Web + Desktop engine range', () => {
|
|
assert.deepEqual(manifest.dsh.client.inject, [
|
|
'@deepseek-ai/dsh-client-connection',
|
|
'@deepseek-ai/dsh-client-locale',
|
|
'@deepseek-ai/dsh-api-remotes',
|
|
'@deepseek-ai/dsh-client-ui-renderer',
|
|
'@deepseek-ai/dsh-client-ui-settings',
|
|
'@deepseek-ai/dsh-client-ui-plugin-manager',
|
|
])
|
|
assert.equal(manifest.dsh.client.platform, 'web')
|
|
assert.equal(manifest.dsh.bundle.patch, './cordis.patch.yml')
|
|
assert.equal(manifest.engines.dsh, '>=0.2.0-rc.2 <0.2.3-0')
|
|
})
|