From 809a31014e08db4e6e6fdff5e8f56713d4973500 Mon Sep 17 00:00:00 2001 From: bohdan Date: Fri, 18 Mar 2022 12:45:41 +0200 Subject: [PATCH] update readme --- readme.md | 87 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/readme.md b/readme.md index b99f0d3..b908a68 100644 --- a/readme.md +++ b/readme.md @@ -64,20 +64,34 @@ describe('Suite', function() { * [toEqual](#toequal) * [toNotEqual](#tonotequal) * [isGreaterThan](#isgreaterthan) + * [isLessThan](#islessthan) + * [toBeLessThan](#tobelessthan) + * [toBeGreaterThan](#tobegreaterthan) * [toNotDeepEqual](#tonotdeepequal) * [toBeEmptyArray](#tobeemptyarray) * [arrayHasLengthAbove](#arrayhaslengthabove) + * [toHaveLengthAbove](#tohavelengthabove) * [arrayIncludesMembers](#arrayincludesmembers) + * [toIncludeMembers](#toincludemembers) * [arrayNotIncludesMembers](#arraynotincludesmembers) + * [toNotIncludeMembers](#tonotincludemembers) * [toBeNotEmptyArray](#tobenotemptyarray) * [toMatchRegex](#tomatchregex) * [objectIncludesKeys](#objectincludeskeys) + * [toIncludeKeys](#toincludekeys) * [hasType](#hastype) * [stringNotIncludesSubstring](#stringnotincludesubstring) + * [toNotIncludeSubstring](#tonotincludesubstring) * [stringIncludesSubstring](#stringincludesubstring) + * [toIncludeSubstring](#toincludesubstring) * [objectIsNotEmpty](#objectisnotempty) + * [toBeNotEmptyObject](#tobenotemptyobject) * [objectIsEmpty](#objectisempty) + * [toBeEmptyObject](#tobeemptyobject) * [stringIsEmpty](#stringisempty) + * [stringIsNotEmpty](#stringisnotempty) + * [toBeNotEmptyString](#tobenotemptystring) + * [toBeEmptyString](#tobeemptystring) * [toBePromise](#tobepromise) * [toBeSymbol](#tobesymbol) * [toBeBool](#tobebool) @@ -134,6 +148,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect(10).isGreaterThan(9); ``` +## toBeGreaterThan + +```js + const {expect} = require('assertior'); + expect(10).toBeGreaterThan(9); +``` ## arrayHasLengthAbove @@ -141,6 +161,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect([1, 2, 3]).arrayHasLengthAbove(2); ``` +## toHaveLengthAbove + +```js + const {expect} = require('assertior'); + expect([1, 2, 3]).toHaveLengthAbove(2); +``` ## toBeNotEmptyArray @@ -156,6 +182,13 @@ describe('Suite', function() { expect({foo: 'bar'}).objectIncludesKeys(['foo']); ``` +## toIncludeKeys + +```js + const {expect} = require('assertior'); + expect({foo: 'bar'}).toIncludeKeys(['foo']); +``` + ## hasType ```js @@ -171,6 +204,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect('foo').stringIncludesSubstring('foo'); ``` +## toIncludeSubstring + +```js + const {expect} = require('assertior'); + expect('foo').toIncludeSubstring('foo'); +``` ## stringNotIncludesSubstring @@ -178,6 +217,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect('foo').stringNotIncludesSubstring('foo'); ``` +## toNotIncludeSubstring + +```js + const {expect} = require('assertior'); + expect('foo').toNotIncludeSubstring('foo'); +``` ## objectIsNotEmpty @@ -185,6 +230,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect({a: 1}).objectIsNotEmpty('foo'); ``` +## toBeNotEmptyObject + +```js + const {expect} = require('assertior'); + expect({a: 1}).toBeNotEmptyObject('foo'); +``` ## objectIsEmpty @@ -192,6 +243,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect({a: 1}).objectIsEmpty('foo'); ``` +## toBeEmptyObject + +```js + const {expect} = require('assertior'); + expect({a: 1}).toBeEmptyObject('foo'); +``` ## stringIsNotEmpty @@ -199,6 +256,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect('test').stringIsNotEmpty(); ``` +## toBeNotEmptyString + +```js + const {expect} = require('assertior'); + expect('test').toBeNotEmptyString(); +``` ## isLessThan @@ -206,6 +269,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect(9).isLessThan(10); ``` +## toBeLessThan + +```js + const {expect} = require('assertior'); + expect(9).toBeLessThan(10); +``` ## stringIsEmpty @@ -213,6 +282,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect('').stringIsEmpty(); ``` +## toBeEmptyString + +```js + const {expect} = require('assertior'); + expect('').toBeEmptyString(); +``` ## toBePromise @@ -304,6 +379,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect([12,23]).arrayIncludesMembers(23); ``` +## toIncludeMembers + +```js + const {expect} = require('assertior'); + expect([12,23]).toIncludeMembers(23); +``` ## arrayNotIncludesMembers @@ -311,6 +392,12 @@ describe('Suite', function() { const {expect} = require('assertior'); expect([12,23]).arrayNotIncludesMembers(25); ``` +## toNotIncludeMembers + +```js + const {expect} = require('assertior'); + expect([12,23]).toNotIncludeMembers(25); +``` ## toMatchRegex