Skip to content

Commit 86aaf7d

Browse files
committed
add some missed assert.name
1 parent 53a65a5 commit 86aaf7d

21 files changed

+21
-0
lines changed

tests/unit-global/es.promise.all-settled.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { createIterable } from '../helpers/helpers.js';
22

33
QUnit.test('Promise.allSettled', assert => {
44
assert.isFunction(Promise.allSettled);
5+
assert.name(Promise.allSettled, 'allSettled');
56
assert.arity(Promise.allSettled, 1);
67
assert.looksNative(Promise.allSettled);
78
assert.nonEnumerable(Promise, 'allSettled');

tests/unit-global/es.promise.any.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { createIterable } from '../helpers/helpers.js';
22

33
QUnit.test('Promise.any', assert => {
44
assert.isFunction(Promise.any);
5+
assert.name(Promise.any, 'any');
56
assert.arity(Promise.any, 1);
67
assert.looksNative(Promise.any);
78
assert.nonEnumerable(Promise, 'any');

tests/unit-global/esnext.array.group-by-to-map.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ const { from } = Array;
55
QUnit.test('Array#groupByToMap', assert => {
66
const { groupByToMap } = Array.prototype;
77
assert.isFunction(groupByToMap);
8+
assert.name(groupByToMap, 'groupToMap');
89
assert.arity(groupByToMap, 1);
910
assert.looksNative(groupByToMap);
1011
assert.nonEnumerable(Array.prototype, 'groupByToMap');

tests/unit-global/esnext.map.upsert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
QUnit.test('Map#upsert', assert => {
22
const { upsert } = Map.prototype;
33
assert.isFunction(upsert);
4+
assert.name(upsert, 'upsert');
45
assert.arity(upsert, 2);
56
assert.looksNative(upsert);
67
assert.nonEnumerable(Map.prototype, 'upsert');

tests/unit-global/esnext.weak-map.upsert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
QUnit.test('WeakMap#upsert', assert => {
22
const { upsert } = WeakMap.prototype;
33
assert.isFunction(upsert);
4+
assert.name(upsert, 'upsert');
45
assert.arity(upsert, 2);
56
assert.looksNative(upsert);
67
assert.nonEnumerable(WeakMap.prototype, 'upsert');

tests/unit-pure/es.promise.all-settled.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import Symbol from 'core-js-pure/es/symbol';
88

99
QUnit.test('Promise.allSettled', assert => {
1010
assert.isFunction(Promise.allSettled);
11+
assert.name(Promise.allSettled, 'allSettled');
1112
assert.arity(Promise.allSettled, 1);
1213
assert.true(Promise.allSettled([1, 2, 3]) instanceof Promise, 'returns a promise');
1314
});

tests/unit-pure/es.promise.any.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import Symbol from 'core-js-pure/es/symbol';
99

1010
QUnit.test('Promise.any', assert => {
1111
assert.isFunction(Promise.any);
12+
assert.name(Promise.any, 'any');
1213
assert.arity(Promise.any, 1);
1314
assert.true(Promise.any([1, 2, 3]) instanceof Promise, 'returns a promise');
1415
});

tests/unit-pure/esnext.map.delete-all.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ QUnit.test('Map#deleteAll', assert => {
55
const { deleteAll } = Map.prototype;
66

77
assert.isFunction(deleteAll);
8+
assert.name(deleteAll, 'deleteAll');
89
assert.arity(deleteAll, 0);
910
assert.nonEnumerable(Map.prototype, 'deleteAll');
1011

tests/unit-pure/esnext.map.find.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ QUnit.test('Map#find', assert => {
44
const { find } = Map.prototype;
55

66
assert.isFunction(find);
7+
assert.name(find, 'find');
78
assert.arity(find, 1);
89
assert.nonEnumerable(Map.prototype, 'find');
910

tests/unit-pure/esnext.map.from.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Map from 'core-js-pure/full/map';
66
QUnit.test('Map.from', assert => {
77
const { from } = Map;
88
assert.isFunction(from);
9+
assert.name(from, 'from');
910
assert.arity(from, 1);
1011
assert.true(from([]) instanceof Map);
1112
assert.deepEqual(toArray(from([])), []);

0 commit comments

Comments
 (0)