You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

15 lines
408 B

import test from 'ava';
import { readFileSync } from 'fs';
import htconvert from '../dist/htconvert';
const input = readFileSync('./fixtures/input', 'utf-8');
const output = readFileSync('./fixtures/output', 'utf-8');
test('htconvert should export a function', t => {
t.is(typeof htconvert, 'function');
});
test('htconvert should match input with output', t => {
t.is(htconvert(input), output);
});