feat: is.propertyKey

This commit is contained in:
PopGoesTheWza 2021-09-07 10:54:53 +02:00
parent 6f2b24d822
commit efb08e4a13
2 changed files with 12 additions and 0 deletions

View file

@ -613,6 +613,13 @@ test('is.number', t => {
testType(t, 'number', ['integer', 'safeInteger', 'infinite']);
});
test('is.propertyKey', t => {
// ??? Unsure what is the correct syntax to `testType` multiple types. Also are the exclusion relevant?
testType(t, 'string', ['emptyString', 'numericString']);
testType(t, 'number', ['nan', 'integer', 'safeInteger', 'infinite']);
testType(t, 'symbol');
});
test('is.bigint', t => {
testType(t, 'bigint');
});