1import test from 'node:test';2import assert from 'node:assert/strict';3import { nativeHorizontalFacing } from '../src/render/facing.js';45test('native face follows the built-in cat glyph through plain palette strings', () => {6 assert.equal(nativeHorizontalFacing('MIAU', '🐈'), 'left');7 assert.equal(nativeHorizontalFacing('MIAU', '🐈', '🐈'), 'left');8 assert.equal(nativeHorizontalFacing('CAT', '🐈', '🐈'), 'left');9 assert.equal(nativeHorizontalFacing('MIAU', '🐱', '🐱'), null);10 assert.equal(nativeHorizontalFacing('FENN', '🦊', '🦊'), null);11});1213test('a mod may declare the native face of another profile glyph', () => {14 assert.equal(nativeHorizontalFacing('UNICORN', '🦄', { glyph: '🦄', faces: 'right' }), 'right');15 assert.equal(nativeHorizontalFacing('UNICORN', '🦄', '🦄'), null);16 assert.equal(nativeHorizontalFacing('MIAU', '🐈', { glyph: '🐈', faces: 'right' }), 'right');17});