Skip to content

Commit f595327

Browse files
committed
add some missed assert.name and assert.arity
1 parent 0a451ee commit f595327

27 files changed

+52
-0
lines changed

tests/unit-pure/es.array.is-array.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import isArray from 'core-js-pure/es/array/is-array';
22

33
QUnit.test('Array.isArray', assert => {
44
assert.isFunction(isArray);
5+
assert.name(isArray, 'isArray');
6+
assert.arity(isArray, 1);
57
assert.false(isArray({}));
68
assert.false(isArray(function () {
79
// eslint-disable-next-line prefer-rest-params -- required for testing

tests/unit-pure/es.date.now.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ import now from 'core-js-pure/es/date/now';
22

33
QUnit.test('Date.now', assert => {
44
assert.isFunction(now);
5+
assert.name(now, 'now');
6+
assert.arity(now, 0);
57
assert.same(typeof now(), 'number', 'typeof');
68
});

tests/unit-pure/es.math.acosh.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import EPSILON from 'core-js-pure/es/number/epsilon';
55

66
QUnit.test('Math.acosh', assert => {
77
assert.isFunction(acosh);
8+
assert.name(acosh, 'acosh');
9+
assert.arity(acosh, 1);
810
assert.same(acosh(NaN), NaN);
911
assert.same(acosh(0.5), NaN);
1012
assert.same(acosh(-1), NaN);

tests/unit-pure/es.math.asinh.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import asinh from 'core-js-pure/es/math/asinh';
44

55
QUnit.test('Math.asinh', assert => {
66
assert.isFunction(asinh);
7+
assert.name(asinh, 'asinh');
8+
assert.arity(asinh, 1);
79
assert.same(asinh(NaN), NaN);
810
assert.same(asinh(0), 0);
911
assert.same(asinh(-0), -0);

tests/unit-pure/es.math.atanh.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import atanh from 'core-js-pure/es/math/atanh';
44

55
QUnit.test('Math.atanh', assert => {
66
assert.isFunction(atanh);
7+
assert.name(atanh, 'atanh');
8+
assert.arity(atanh, 1);
79
assert.same(atanh(NaN), NaN);
810
assert.same(atanh(-2), NaN);
911
assert.same(atanh(-1.5), NaN);

tests/unit-pure/es.math.cbrt.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import cbrt from 'core-js-pure/es/math/cbrt';
44

55
QUnit.test('Math.cbrt', assert => {
66
assert.isFunction(cbrt);
7+
assert.name(cbrt, 'cbrt');
8+
assert.arity(cbrt, 1);
79
assert.same(cbrt(NaN), NaN);
810
assert.same(cbrt(0), 0);
911
assert.same(cbrt(-0), -0);

tests/unit-pure/es.math.clz32.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import clz32 from 'core-js-pure/es/math/clz32';
44

55
QUnit.test('Math.clz32', assert => {
66
assert.isFunction(clz32);
7+
assert.name(clz32, 'clz32');
8+
assert.arity(clz32, 1);
79
assert.same(clz32(0), 32);
810
assert.same(clz32(1), 31);
911
assert.same(clz32(-1), 0);

tests/unit-pure/es.math.cosh.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import cosh from 'core-js-pure/es/math/cosh';
44

55
QUnit.test('Math.cosh', assert => {
66
assert.isFunction(cosh);
7+
assert.name(cosh, 'cosh');
8+
assert.arity(cosh, 1);
79
assert.same(cosh(NaN), NaN);
810
assert.same(cosh(0), 1);
911
assert.same(cosh(-0), 1);

tests/unit-pure/es.math.expm1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import expm1 from 'core-js-pure/es/math/expm1';
44

55
QUnit.test('Math.expm1', assert => {
66
assert.isFunction(expm1);
7+
assert.name(expm1, 'expm1');
8+
assert.arity(expm1, 1);
79
assert.same(expm1(NaN), NaN);
810
assert.same(expm1(0), 0);
911
assert.same(expm1(-0), -0);

tests/unit-pure/es.math.fround.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const { MAX_VALUE, MIN_VALUE } = Number;
66

77
QUnit.test('Math.fround', assert => {
88
assert.isFunction(fround);
9+
assert.name(fround, 'fround');
10+
assert.arity(fround, 1);
911
assert.same(fround(), NaN);
1012
assert.same(fround(undefined), NaN);
1113
assert.same(fround(NaN), NaN);

0 commit comments

Comments
 (0)