mirror of
https://github.com/iflytek/skillhub.git
synced 2026-10-15 04:18:20 +00:00
test(cli): keep upgrade assertions registry-scoped
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
397ac78751
commit
35e15f4493
1 changed files with 4 additions and 1 deletions
|
|
@ -291,7 +291,10 @@ describe('upgrade command', () => {
|
|||
expect(inventory.items[0]).toMatchObject({ version: '1.1.0', fingerprint: 'fp-v2' })
|
||||
expect(inventory.items[0].targets).toHaveLength(2)
|
||||
|
||||
const listed = await runCli(['list', '--json'], { HOME: env.home, USERPROFILE: env.home })
|
||||
const listed = await runCli(['list', '--json', '--registry', registry.url], {
|
||||
HOME: env.home,
|
||||
USERPROFILE: env.home
|
||||
})
|
||||
expect(listed.exitCode).toBe(0)
|
||||
expect(JSON.parse(listed.stdout).items[0]).toMatchObject({ version: '1.1.0' })
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue