0.3.1 • Published 6 years ago

reksio v0.3.1

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

reksio :dog2:

A beginner-friendly synchronous test library for learning

Work In Progress, therefore the API is highly unstable

Example:

var describe = require('./index')

describe('Some suite')
  .xit('foo bar', function (assert) {
    assert.equal(3, 3)
    assert.equal(2, 3)
  })
  .it('baz', function (assert) {
    assert.deepEqual([1, 2, 3], [1, 2])
    assert.deepEqual([1, 2], [1, 2])
  })

describe('Other suite')
  .it('qux', function (assert) {
    assert.equal(5, 6)
    assert.eqv(8, 7)
  })
  .it('quux', function (assert) {
    assert.deepEqual([1, 2, 3], [1, 2, 3])
    assert.deqv([1, 2], [1, 2])
  })

Result:

Some suite??
        foo bar ?
        baz
                ?? Expected 1,2,3 to be deeply equal 1,2

Other suite??
        qux
                ?? Expected 5 to equal 6
                ?? Expected 8 to equal 7
        quux
        OK!
0.3.1

6 years ago

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago