DOM test fixtures made as easy as they ought to be
$ yarn add fixt
import test from 'fixt';
describe('text()', () => {
it('returns the text content of an element', async () => {
await test(
`
<p>Hello world!</p>
`,
p => assert(text(p) === 'Hello world!')
);
});
});
Copyright © 2017-2018 Kasper Kronborg Isager. Licensed under the terms of the MIT license.