|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
534 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | require('core-js');
|
|---|
| 4 |
|
|---|
| 5 | var inspect = require('./');
|
|---|
| 6 | var test = require('tape');
|
|---|
| 7 |
|
|---|
| 8 | test('Maps', function (t) {
|
|---|
| 9 | t.equal(inspect(new Map([[1, 2]])), 'Map (1) {1 => 2}');
|
|---|
| 10 | t.end();
|
|---|
| 11 | });
|
|---|
| 12 |
|
|---|
| 13 | test('WeakMaps', function (t) {
|
|---|
| 14 | t.equal(inspect(new WeakMap([[{}, 2]])), 'WeakMap { ? }');
|
|---|
| 15 | t.end();
|
|---|
| 16 | });
|
|---|
| 17 |
|
|---|
| 18 | test('Sets', function (t) {
|
|---|
| 19 | t.equal(inspect(new Set([[1, 2]])), 'Set (1) {[ 1, 2 ]}');
|
|---|
| 20 | t.end();
|
|---|
| 21 | });
|
|---|
| 22 |
|
|---|
| 23 | test('WeakSets', function (t) {
|
|---|
| 24 | t.equal(inspect(new WeakSet([[1, 2]])), 'WeakSet { ? }');
|
|---|
| 25 | t.end();
|
|---|
| 26 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.