UNPKG

node-emoji

Version:

Friendly emoji lookups and parsing utilities for Node.js

15 lines (11 loc) 362 B
import { describe, expect, it } from '@jest/globals' import { has } from './has' import { get } from './get' import { random } from './random' describe('random', () => { it('returns a random emoji and the corresponding key', () => { const result = random() expect(has(result.name)).toBe(true) expect(result.emoji).toBe(get(result.name)) }) })