|
| 1 | +// Copyright (c) Mapbox, Inc. |
| 2 | +// Licensed under the MIT License. |
| 3 | + |
| 4 | +import { describe, it, expect } from 'vitest'; |
| 5 | + |
| 6 | +describe('Public API exports', () => { |
| 7 | + describe('tools barrel', () => { |
| 8 | + it('exports getAllTools', async () => { |
| 9 | + const { getAllTools } = await import('../src/tools/index.js'); |
| 10 | + expect(getAllTools).toBeDefined(); |
| 11 | + expect(typeof getAllTools).toBe('function'); |
| 12 | + }); |
| 13 | + |
| 14 | + it('exports getCoreTools', async () => { |
| 15 | + const { getCoreTools } = await import('../src/tools/index.js'); |
| 16 | + expect(getCoreTools).toBeDefined(); |
| 17 | + expect(typeof getCoreTools).toBe('function'); |
| 18 | + }); |
| 19 | + |
| 20 | + it('exports getToolByName', async () => { |
| 21 | + const { getToolByName } = await import('../src/tools/index.js'); |
| 22 | + expect(getToolByName).toBeDefined(); |
| 23 | + expect(typeof getToolByName).toBe('function'); |
| 24 | + }); |
| 25 | + }); |
| 26 | + |
| 27 | + describe('utils barrel', () => { |
| 28 | + it('exports getVersionInfo', async () => { |
| 29 | + const { getVersionInfo } = await import('../src/utils/index.js'); |
| 30 | + expect(getVersionInfo).toBeDefined(); |
| 31 | + expect(typeof getVersionInfo).toBe('function'); |
| 32 | + }); |
| 33 | + |
| 34 | + it('exports httpRequest', async () => { |
| 35 | + const { httpRequest } = await import('../src/utils/index.js'); |
| 36 | + expect(httpRequest).toBeDefined(); |
| 37 | + expect(typeof httpRequest).toBe('function'); |
| 38 | + }); |
| 39 | + }); |
| 40 | +}); |
0 commit comments