File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change @@ -19115,30 +19115,34 @@
19115
19115
});
19116
19116
19117
19117
QUnit.test('should work with maps', function(assert) {
19118
- assert.expect(1 );
19118
+ assert.expect(2 );
19119
19119
19120
19120
if (Map) {
19121
- var map = new Map;
19122
- map.set('a', 1);
19123
- map.set('b', 2);
19124
- assert.strictEqual(_.size(map), 2);
19121
+ lodashStable.each([new Map, realm.map], function(map) {
19122
+ map.set('a', 1);
19123
+ map.set('b', 2);
19124
+ assert.strictEqual(_.size(map), 2);
19125
+ map.clear();
19126
+ });
19125
19127
}
19126
19128
else {
19127
- skipAssert(assert);
19129
+ skipAssert(assert, 2 );
19128
19130
}
19129
19131
});
19130
19132
19131
19133
QUnit.test('should work with sets', function(assert) {
19132
- assert.expect(1 );
19134
+ assert.expect(2 );
19133
19135
19134
19136
if (Set) {
19135
- var set = new Set;
19136
- set.add(1);
19137
- set.add(2);
19138
- assert.strictEqual(_.size(set), 2);
19137
+ lodashStable.each([new Set, realm.set], function(set) {
19138
+ set.add(1);
19139
+ set.add(2);
19140
+ assert.strictEqual(_.size(set), 2);
19141
+ set.clear();
19142
+ });
19139
19143
}
19140
19144
else {
19141
- skipAssert(assert);
19145
+ skipAssert(assert, 2 );
19142
19146
}
19143
19147
});
19144
19148
You can’t perform that action at this time.
0 commit comments