UNPKG

tsoid

Version:

Typed functional library to deal with async operations.

10 lines (9 loc) 306 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const index_1 = require("../../index"); describe('pure', () => { it('Should pure(number) return Promise<number>', () => { const res = index_1.pure(10); res.then((value) => expect(value).toBe(10)); }); });