Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test-core-js.js 534B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. require('core-js');
  3. var inspect = require('./');
  4. var test = require('tape');
  5. test('Maps', function (t) {
  6. t.equal(inspect(new Map([[1, 2]])), 'Map (1) {1 => 2}');
  7. t.end();
  8. });
  9. test('WeakMaps', function (t) {
  10. t.equal(inspect(new WeakMap([[{}, 2]])), 'WeakMap { ? }');
  11. t.end();
  12. });
  13. test('Sets', function (t) {
  14. t.equal(inspect(new Set([[1, 2]])), 'Set (1) {[ 1, 2 ]}');
  15. t.end();
  16. });
  17. test('WeakSets', function (t) {
  18. t.equal(inspect(new WeakSet([[1, 2]])), 'WeakSet { ? }');
  19. t.end();
  20. });