Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

448 B
Raw Blame
import { describe, expect, it, vi } from 'vitest'

const host = vi.hoisted(() => ({ reload: vi.fn(async () => undefined) }))
vi.mock('../host', () => ({ getExtensionHost: () => host }))

import { reloadInstalled } from '../installed-reload'

describe('reloadInstalled', () => {
  it('respawns the extension from the registry', async () => {
    await reloadInstalled('acme.hello')
    expect(host.reload).toHaveBeenCalledWith('acme.hello')
  })
})