import { describe, expect, it } from '@jest/globals'; import { _, cnst, fromNative, id, toNative, undef } from '../src/core'; describe('id', () => { it('returns first argument', () => { expect(toNative(id._(fromNative('first')))).toBe('first'); }); }); describe('cnst', () => { it('returns first argument after receiving second', () => { expect(toNative(cnst._(fromNative('first'))._(fromNative('second')))).toBe('first'); }); it('ignores second argument', () => { expect(toNative(cnst._(fromNative('first'))._(undef))).toBe('first'); }); });