Skip to content
This repository was archived by the owner on Dec 17, 2022. It is now read-only.

douglasduteil/jest-environment-basichtml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jest-environment-basichtml

Build Status NPM version

basicHTML environment in Jest

Install

$ npm install --save-dev jest-environment-basichtml
# or
$ yarn -D jest-environment-basichtml

Usage

test('should say hello world', () => {
  document.body.append('Hello world');
  expect(document.body.outerHTML).toBe('<body>Hello world</body>');
});

License

Copyright © 2018 Douglas Duteil <douglasduteil@gmail.com>
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See the LICENCE file for more details.

About

💀 basicHTML environment in Jest

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •