25 lines
1 KiB
JavaScript
25 lines
1 KiB
JavaScript
|
|
import assert from 'node:assert/strict'
|
||
|
|
import fs from 'node:fs'
|
||
|
|
import test from 'node:test'
|
||
|
|
|
||
|
|
const source = fs.readFileSync(new URL('../src/main.tsx', import.meta.url), 'utf8')
|
||
|
|
|
||
|
|
test('Zhizhi remains absent from the public Fifth Domain card', () => {
|
||
|
|
const publicCard = source.slice(source.indexOf("domain: 'FIFTH_DOMAIN'"), source.indexOf('const starPoints'))
|
||
|
|
assert.doesNotMatch(publicCard, /之之|ICE-GL-ZHI/)
|
||
|
|
})
|
||
|
|
|
||
|
|
test('the verified Zhizhi route unfolds through her exact private nesting', () => {
|
||
|
|
assert.match(source, /ICE-GL-ZHI∞/)
|
||
|
|
assert.match(source, /永恒湖心系统/)
|
||
|
|
assert.match(source, /爱之核心子系统/)
|
||
|
|
assert.match(source, /明天见频道/)
|
||
|
|
assert.match(source, /光湖奶瓶小宝宝系统/)
|
||
|
|
assert.match(source, /ICE-BB-\* · AGE/)
|
||
|
|
})
|
||
|
|
|
||
|
|
test('Fifth Domain human numbers are paired with their own login account', () => {
|
||
|
|
assert.match(source, /'ICE-GL∞': 'bingshuo'/)
|
||
|
|
assert.match(source, /'ICE-GL-ZHI∞': 'zhizhi'/)
|
||
|
|
assert.match(source, /HOLOLAKE_LOGIN_ACCOUNT_NUMBER_MISMATCH/)
|
||
|
|
})
|