Skip to content
This repository has been archived by the owner on Jun 30, 2018. It is now read-only.

kasperisager/fixt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fixt

DOM test fixtures made as easy as they ought to be

Contents

Installation

$ yarn add fixt

Usage

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!')
    );
  });
});

License

Copyright © 2017-2018 Kasper Kronborg Isager. Licensed under the terms of the MIT license.

About

DOM test fixtures made as easy as they ought to be

Resources

License

Stars

Watchers

Forks

Packages

No packages published