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