UNPKG
easily-expect
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
You can easily use expect
github.com/KSH-code/easily-expect
KSH-code/easily-expect
easily-expect
/
checkNotEmpty.js
13 lines
(11 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
const
{ expect } =
require
(
'chai'
)
/** * *
@param
{
Objects
}
objects
*/
module
.
exports
=
function
checkNotEmpty
(
...objects
) {
for
(
let
i =
0
; i < objects.
length
; i++) {
expect
(objects[i]).
to
.
not
.
be
.
empty
} }