easily-expect
Advanced tools
Comparing version
@@ -76,4 +76,9 @@ 'use strict' | ||
} | ||
exports.checkAbove = function checkAbove (n, ...objects) { | ||
for (let i = 0; i < objects.length; i++) { | ||
expect(objects[i]).to.be.above(n) | ||
} | ||
} | ||
exports.init = data => { | ||
cacheData = data | ||
} |
{ | ||
"name": "easily-expect", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "You can easily use expect", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -38,2 +38,5 @@ [](https://travis-ci.org/KSH-code/easily-expect) | ||
}) | ||
it('1. simple test', () => { | ||
checkAbove(2, 3, 4, 'abc'.length, 'abcd'.length) | ||
}) | ||
@@ -49,1 +52,2 @@ ``` | ||
* [checkAllKeys](https://github.com/KSH-code/easily-expect/blob/master/test/checkAllKeys.test.js) | ||
* [checkAbove](https://github.com/KSH-code/easily-expect/blob/master/test/checkAbove.test.js) |
11539
5.18%14
7.69%221
6.25%52
8.33%