mirror of
https://github.com/flynx/test.js.git
synced 2025-10-28 10:20:09 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
51849823c0
commit
207ac3802f
@ -286,14 +286,16 @@ XXX
|
|||||||
A _subclass_ or rather _sub-constructor_ of `Merged`.
|
A _subclass_ or rather _sub-constructor_ of `Merged`.
|
||||||
|
|
||||||
Note that `Setups` and `Setup` are references to the same object, they exists
|
Note that `Setups` and `Setup` are references to the same object, they exists
|
||||||
for better readability in cases when we add a single test or a bunch of tests,
|
for better readability in cases when we add a single element (`<key>`-`<func>`
|
||||||
e.g:
|
pair) or a bunch of elements (object), for example:
|
||||||
```javascript
|
```javascript
|
||||||
|
// single element...
|
||||||
test.Setup('some-setup',
|
test.Setup('some-setup',
|
||||||
function(){
|
function(){
|
||||||
// ...
|
// ...
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// arbitrary number of elements...
|
||||||
test.Setups({
|
test.Setups({
|
||||||
'some-other-setup': function(){
|
'some-other-setup': function(){
|
||||||
// ...
|
// ...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user