UNPKG

insomnia-importers

Version:

Various data importers for Insomnia

16 lines (13 loc) 379 B
import { describe, expect, it } from '@jest/globals'; import { fail } from 'assert'; import { convert } from './convert'; describe('Import errors', () => { it('fail to find importer', async () => { try { await convert('foo'); fail('Should have thrown error'); } catch (err) { expect(err.message).toBe('No importers found for file'); } }); });