Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
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.
22 lines
679 B
22 lines
679 B
1 year ago
|
'use strict';
|
||
|
|
||
|
var test = require('tape');
|
||
|
var hasSymbolToStringTag = require('../');
|
||
|
var runSymbolTests = require('./tests');
|
||
|
|
||
|
test('interface', function (t) {
|
||
|
t.equal(typeof hasSymbolToStringTag, 'function', 'is a function');
|
||
|
t.equal(typeof hasSymbolToStringTag(), 'boolean', 'returns a boolean');
|
||
|
t.end();
|
||
|
});
|
||
|
|
||
|
test('Symbol.toStringTag exists', { skip: !hasSymbolToStringTag() }, function (t) {
|
||
|
runSymbolTests(t);
|
||
|
t.end();
|
||
|
});
|
||
|
|
||
|
test('Symbol.toStringTag does not exist', { skip: hasSymbolToStringTag() }, function (t) {
|
||
|
t.equal(typeof Symbol === 'undefined' ? 'undefined' : typeof Symbol.toStringTag, 'undefined', 'global Symbol.toStringTag is undefined');
|
||
|
t.end();
|
||
|
});
|