lad
Version:
Lad is the best Node.js framework. Made by a former Express TC and Koa team member.
13 lines (9 loc) • 297 B
JavaScript
const test = require('ava');
const { json, emoji } = require('../../config/utilities');
test('returns JSON with 2 spaces', (t) => {
t.snapshot(json({ ok: 'hey' }));
});
test('returns valid emoji or empty string', (t) => {
t.is(emoji('cat'), '🐱');
t.is(emoji('invalid_emoji'), '');
});