Bot releases are hidden (Show)
Published by unional almost 7 years ago
Improve measurement code so that it will not fail on browsers, in case you are using assert-order
on tests that runs on browsers (e.g. using karma
).
Published by unional almost 7 years ago
assert-order
now also help you to keep track of how long it takes to execute some code.
const order = new AssertOrder()
// do some work
console.log(`${order.end()} ms have passed`)
Published by unional almost 7 years ago
In this release, I completely rewrite AssertOrder
to clean up its API.
Many improvements have been made to make the result more consistent.
step()
, all()
, multliple()
, some()
are removedatLeastOnce()
(replacing some()
), exactly()
(replacing all()
, multiple()
), on()
, onAny()
Published by unional over 7 years ago
Add multiple()
as alias to all()
Published by unional almost 8 years ago
const order = new AssertOrder()
order.once(0)
order.next // === 1
Published by unional almost 8 years ago
end()
will now support putting in a timeout value and returns a promise if doing so.
it will simply wait for specified amount to time before validating the planned step is satisfied.
Published by unional almost 8 years ago
Add planning support:
const a = new AssertOrder(3)
a.once(0)
a.once(1)
a.once(2)
a.end()
And multi-pass:
function odd() { a.any(1, 3, 5) }
function even() { a.any(0, 2, 4) }
const a = new AssertOrder()
even()
odd()
even()
odd()
even()
odd()
Published by unional almost 8 years ago
any()
, some()
, all()
and plan()
will now return the current step so you can use that value in your test code to do other validations / logic.
Published by unional almost 8 years ago
Publish as assert-order
instead of @unional/assert-order
for easier access.
Published by unional almost 8 years ago
To /@unional/assert-order
Published by unional almost 8 years ago
Support once()
, step()
, some()
, any()
, all()
, plan()
.
Version to 1.1 directly as this is very simple and stable.