Skip to content

Commit

Permalink
feat: ensuring all tests make use of the new "alternativeDOMs" fixtur…
Browse files Browse the repository at this point in the history
…e values
  • Loading branch information
VicGUTT committed Apr 24, 2022
1 parent bb8eaaf commit b5a1a81
Show file tree
Hide file tree
Showing 41 changed files with 249 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/is/isArray.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isArray', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isArray(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isArray(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isAsyncFunction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ describe('is:isAsyncFunction', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isAsyncFunction(value)).toEqual(false);
});
});

it(`➖ functions !== || === ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isAsyncFunction(value)).toEqual(value.constructor === AsyncFunction);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isBigInt.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isBigInt', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isBigInt(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isBigInt(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isBlank.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,12 @@ describe('is:isBlank', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isBlank(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isBlank(value)).toEqual(false);
Expand Down
7 changes: 7 additions & 0 deletions tests/is/isBoolean.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ describe('is:isBoolean', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isBoolean(value)).toEqual(false);
expect(isBoolean(value, true)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isBoolean(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isClass.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isClass', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isClass(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isClass(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isDate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isDate', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isDate(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isDate(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isElement.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isElement', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isElement(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isElement(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isEmpty.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,12 @@ describe('is:isEmpty', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isEmpty(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isEmpty(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isEvent.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isEvent', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isEvent(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isEvent(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isFalsy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isFalsy', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isFalsy(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isFalsy(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isFloat.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ describe('is:isFloat', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isFloat(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isFloat(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isFormData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isFormData', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isFormData(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isFormData(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isFunction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isFunction', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isFunction(value)).toEqual(false);
});
});

it(`✅ functions === ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isFunction(value)).toEqual(true);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isInfinity.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isInfinity', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isInfinity(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isInfinity(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isInteger.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,12 @@ describe('is:isInteger', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isInteger(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isInteger(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isIterable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isIterable', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isIterable(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isIterable(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isLengthy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isLengthy', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isLengthy(value)).toEqual(false);
});
});

it(`✅ functions === ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isLengthy(value)).toEqual(true);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isMap.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isMap', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isMap(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isMap(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isNan.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isNan', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isNan(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isNan(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isNodeList.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isNodeList', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isNodeList(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isNodeList(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isNull.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ describe('is:isNull', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isNull(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isNull(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isNullOrUndefined.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isNullOrUndefined', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isNullOrUndefined(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isNullOrUndefined(value)).toEqual(false);
Expand Down
7 changes: 7 additions & 0 deletions tests/is/isNumber.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,13 @@ describe('is:isNumber', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isNumber(value)).toEqual(false);
expect(isNumber(value, true)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isNumber(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isNumeric.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ describe('is:isNumeric', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isNumeric(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isNumeric(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isObject.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isObject', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isObject(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isObject(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isOfType.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,12 @@ describe('is:isOfType', () => {
});
});

it(`✅ DOM alternative contexts are of type -> derivative`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isOfType(value, 'derivative')).toEqual(true);
});
});

it(`✅ functions are of type -> function`, () => {
values.functions.forEach((value) => {
expect(isOfType(value, 'function')).toEqual(true);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isPrimitive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,12 @@ describe('is:isPrimitive', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isPrimitive(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isPrimitive(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isPromise.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isPromise', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isPromise(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isPromise(value)).toEqual(false);
Expand Down
6 changes: 6 additions & 0 deletions tests/is/isSet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ describe('is:isSet', () => {
});
});

it(`❌ DOM alternative contexts !== ${KEY}`, () => {
values.alternativeDOMs.forEach((value) => {
expect(isSet(value)).toEqual(false);
});
});

it(`❌ functions !== ${KEY}`, () => {
values.functions.forEach((value) => {
expect(isSet(value)).toEqual(false);
Expand Down
Loading

0 comments on commit b5a1a81

Please sign in to comment.