Instalation
Just add the javascript to your html =).
<script src="stormbreaker.js"></script>
Usage
test('my test 1', assert => {
assert.equals(valueA, valueB)
})
test('my test 2', assert => {
assert.isTrue(value)
})
test('my test 3', assert => {
assert.isFalse(value)
})
test('my test 4', assert => {
assert.throwsWithMessage(MyErrorClass, 'my error message', () => {
// my code that raises an error.
})
})
test('my test 5', assert => {
assert.throws(MyErrorClass, () => {
// my code that raises an error.
})
})
Results
The results will be outputed in developer console.