UNPKG

@whook/whook

Version:

Build strong and efficient REST web services.

23 lines 617 B
import { describe, test, expect } from '@jest/globals'; import { noop, identity, pipe, compose } from './utils.js'; describe('noop', () => { test('should work', () => { noop(); }); }); describe('identity', () => { test('should work', () => { expect(identity('a')).toEqual('a'); }); }); describe('pipe', () => { test('should work', () => { expect(pipe(identity, identity)('a')).toEqual('a'); }); }); describe('noop', () => { test('should work', () => { expect(compose(identity, identity)('a')).toEqual('a'); }); }); //# sourceMappingURL=utils.test.js.map