CoolFace
Apppublic

HarshvardhanCn01/Voice-Assistant

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
test-core-js.js27 linesDownload Raw Back to object-inspect
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});27