UNPKG

tsoid

Version:

Typed functional library to deal with async operations.

10 lines (9 loc) 301 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../../index"); describe('id', () => { it('Should return the argument', () => { expect(index_1.id(1)).toBe(1); expect(index_1.id(new Error(''))).toBeInstanceOf(Error); }); });