Files
dsh-telegram-channel/tests/smoke-config.test.ts
T
2026-08-14 15:57:41 +08:00

14 lines
497 B
TypeScript

import assert from 'node:assert/strict'
import test from 'node:test'
import { readFileSync } from 'node:fs'
import { fileURLToPath } from 'node:url'
import { dirname, join } from 'node:path'
const root = join(dirname(fileURLToPath(import.meta.url)), '..')
test('package name is dsh-telegram-channel', () => {
const pkg = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8'))
assert.equal(pkg.name, 'dsh-telegram-channel')
assert.equal(pkg.dsh.bundle.patch, './cordis.patch.yml')
})