UNPKG

tsoid

Version:

Typed functional library to deal with async operations.

10 lines (9 loc) 311 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const fail_1 = require("../fail"); describe('fail', () => { it('Should output failed promise', () => { const res = fail_1.default('This failed'); res.then(error => expect(error).toBeInstanceOf(Error)); }); });