0.0.1 • Published 4 years ago
uner v0.0.1
UnitJS (Beta)
the fun, simple, flexible JavaScript test library for the browser
Install
npm i uner --save
# or
yarn add uner
Or include it via jsDelivr CDN (UMD):
<script src="https://cdn.jsdelivr.net/npm/uner/build/index.min.js"></script>
<!-- Or via unpkg -->
<script src="https://unpkg.com/uner"></script>
<!-- Access via global object : window.unitjs -->
Usage
import { describe, expect, messages } from 'uner'
describe('adds 1 + 2 to equal 3', () => {
expect(1 + 2).toBe(3)
});
console.log(messages)
Methods
toBe()
toNotBe()
toBeTruthy()
toBeFalsy()
toBeGreaterThan()
toBeLessThan()
toThrow()
Notes
- All pull requests are welcome, feel free.
License
MIT