mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
test(apps): strengthen application and build verification
This commit is contained in:
1 parent
bdfe4bbeb5
commit
2bb5eb3715
18 files changed
+465
-559
No files matched your search
@@ -1,10 +0,0 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import { readFileSync } from 'node:fs'
|
||||
import test from 'node:test'
|
||||
|
||||
const source = readFileSync(new URL('./SessionInsights.vue', import.meta.url), 'utf8')
|
||||
|
||||
test('keeps member filter invalidation scoped to the active insight subtree', () => {
|
||||
assert.equal(source.includes('abortAnalyticsRequests'), false)
|
||||
assert.equal(source.match(/:key="selectedMemberId \?\? 'all'"/g)?.length, 3)
|
||||
})
|
||||
@@ -1,14 +0,0 @@
|
||||
import assert from 'node:assert/strict'
|
||||
import test from 'node:test'
|
||||
import { webWasmRoutes } from './routes'
|
||||
|
||||
test('keeps Web WASM application routes independent from the backend client', () => {
|
||||
assert.deepEqual(
|
||||
webWasmRoutes.map(({ path, name }) => ({ path, name })),
|
||||
[
|
||||
{ path: '/', name: 'home' },
|
||||
{ path: '/group-chat/:id', name: 'group-chat' },
|
||||
{ path: '/private-chat/:id', name: 'private-chat' },
|
||||
]
|
||||
)
|
||||
})
|
||||
Reference in new issue
Block a user