Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
commit
03634b1ca3
11340 files changed
+3442369
No files matched your search
@@ -0,0 +1,45 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
|
||||
import { resolveDeepLinkAction } from './deeplink-routes'
|
||||
|
||||
describe('resolveDeepLinkAction', () => {
|
||||
it('routes unified plugin install deeplinks', () => {
|
||||
expect(
|
||||
resolveDeepLinkAction({
|
||||
kind: 'plugin',
|
||||
name: 'install',
|
||||
params: { repo: 'owner/repo', enable: '0', force: '1' }
|
||||
})
|
||||
).toEqual({
|
||||
type: 'plugin-install',
|
||||
repo: 'owner/repo',
|
||||
enable: false,
|
||||
force: true,
|
||||
legacyHint: null
|
||||
})
|
||||
})
|
||||
|
||||
it('routes legacy plugin-agent alias', () => {
|
||||
expect(
|
||||
resolveDeepLinkAction({
|
||||
kind: 'plugin-agent',
|
||||
name: '',
|
||||
params: { repo: 'owner/repo' }
|
||||
})
|
||||
).toMatchObject({ type: 'plugin-install', legacyHint: 'agent' })
|
||||
})
|
||||
|
||||
it('routes blueprint composer inserts', () => {
|
||||
expect(
|
||||
resolveDeepLinkAction({
|
||||
kind: 'blueprint',
|
||||
name: 'morning-brief',
|
||||
params: { time: '08:00' }
|
||||
})
|
||||
).toEqual({
|
||||
type: 'composer-blueprint',
|
||||
name: 'morning-brief',
|
||||
params: { time: '08:00' }
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user