Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

443 B
Raw Blame
import { randomUUID } from 'node:crypto'
import { expect, test } from 'vitest'
import { Template } from '../../src'

test('check if base template name exists', async () => {
  const exists = await Template.exists('base')
  expect(exists).toBe(true)
})

test('check non existing name', async () => {
  const nonExistingName = `nonexistent-${randomUUID()}`
  const exists = await Template.exists(nonExistingName)
  expect(exists).toBe(false)
})