main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
654 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 |
|
---|
3 | var test = require('tape');
|
---|
4 | var hasSymbols = require('../');
|
---|
5 | var runSymbolTests = require('./tests');
|
---|
6 |
|
---|
7 | test('interface', function (t) {
|
---|
8 | t.equal(typeof hasSymbols, 'function', 'is a function');
|
---|
9 | t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean');
|
---|
10 | t.end();
|
---|
11 | });
|
---|
12 |
|
---|
13 | test('Symbols are supported', { skip: !hasSymbols() }, function (t) {
|
---|
14 | runSymbolTests(t);
|
---|
15 | t.end();
|
---|
16 | });
|
---|
17 |
|
---|
18 | test('Symbols are not supported', { skip: hasSymbols() }, function (t) {
|
---|
19 | t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined');
|
---|
20 | t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist');
|
---|
21 | t.end();
|
---|
22 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.