From 4890ce5af2a6756f7e88994e427f3824d7a77234 Mon Sep 17 00:00:00 2001 From: Shaheed Azaad Date: Sun, 10 Dec 2023 16:53:33 +1100 Subject: [PATCH] Corrected for notInclude and notDeepInclude, which were previously mixed-up with include and deepInclude respectively --- src/assert.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/assert.ts b/src/assert.ts index 42c5fc6..66ef956 100644 --- a/src/assert.ts +++ b/src/assert.ts @@ -887,13 +887,13 @@ export class Assert extends Macroable implements AssertContract { * See {@link this.deepInclude} for nested object properties * * @example - * assert.include( + * assert.notInclude( * { id: 1, name: 'virk' }, - * { name: 'virk' } + * { name: 'foo' } * ) // passes * - * assert.include([1, 2, 3], 2) // passes - * assert.include('hello world', 'hello') // passes + * assert.notInclude([1, 2, 3], 4) // passes + * assert.notInclude('hello world', 'bar') // passes */ notInclude(...args: Parameters): ReturnType { this.incrementAssertionsCount() @@ -929,7 +929,7 @@ export class Assert extends Macroable implements AssertContract { * { foo: { a: 4 } } * ) // passes * - * assert.deepInclude([1, [2], 3], [20]) // passes + * assert.notDeepInclude([1, [2], 3], [20]) // passes */ notDeepInclude( ...args: Parameters