UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

10 lines (8 loc) 306 B
import { StitchError } from '../src/errors'; describe('StitchError', () => { it('reports a full stack trace', () => { const err = new StitchError('Oh noes!'); expect(err.toString()).toEqual('StitchError: Oh noes!'); expect(err.stack.length).toBeGreaterThan(err.toString().length); }); });