- Move FigmaAPI tests into focused files by feature area - Share API construction from figma/api/helpers.ts - Remove FigmaAPI coverage from max-lines exceptions
16 lines
380 B
TypeScript
16 lines
380 B
TypeScript
import { describe, expect, test } from 'bun:test'
|
|
|
|
import { createAPI } from './helpers'
|
|
|
|
describe('stubs', () => {
|
|
test('loadFontAsync resolves', async () => {
|
|
const api = createAPI()
|
|
await api.loadFontAsync({ family: 'Inter', style: 'Regular' })
|
|
})
|
|
|
|
test('mixed is a symbol', () => {
|
|
const api = createAPI()
|
|
expect(typeof api.mixed).toBe('symbol')
|
|
})
|
|
})
|