source: imaps-frontend/node_modules/object-inspect/test-core-js.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 534 bytes
Line 
1'use strict';
2
3require('core-js');
4
5var inspect = require('./');
6var test = require('tape');
7
8test('Maps', function (t) {
9 t.equal(inspect(new Map([[1, 2]])), 'Map (1) {1 => 2}');
10 t.end();
11});
12
13test('WeakMaps', function (t) {
14 t.equal(inspect(new WeakMap([[{}, 2]])), 'WeakMap { ? }');
15 t.end();
16});
17
18test('Sets', function (t) {
19 t.equal(inspect(new Set([[1, 2]])), 'Set (1) {[ 1, 2 ]}');
20 t.end();
21});
22
23test('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.