import { describe, expect, it } from '@jest/globals'; import { $, _, cnst, id, undef } from '../src/core'; describe('id', () => { it('returns first argument', () => { expect($(id._(_('first')))).toBe('first'); }); }); describe('cnst', () => { it('returns first argument after receiving second', () => { expect($(cnst._(_('first'))._(_('second')))).toBe('first'); }); it('ignores second argument', () => { expect($(cnst._(_('first'))._(undef))).toBe('first'); }); }); describe('pipe', () => { it.failing('applies both functions in order', () => { expect('Not implemented').toBe('Implemented'); }); });