Sha256: 0d9d3d18b263115318640f24608b78b087bed576d90107638912ab85cf4fb4ff
Contents?: true
Size: 747 Bytes
Versions: 61
Compression:
Stored size: 747 Bytes
Contents
'use strict'; var index = require('../'); var test = require('tape'); var runTests = require('./tests'); test('as a function', function (t) { t.test('ArrayBuffer support', { skip: typeof ArrayBuffer === 'undefined' }, function (st) { st.test('bad array/this value', function (s2t) { s2t['throws'](function () { index(undefined); }, TypeError, 'undefined is not an object'); s2t['throws'](function () { index(null); }, TypeError, 'null is not an object'); s2t.end(); }); runTests(index, st); st.end(); }); t.test('no ArrayBuffer support', { skip: typeof ArrayBuffer !== 'undefined' }, function (st) { st['throws']( function () { index({}); }, SyntaxError, 'ArrayBuffer is not supported' ); }); t.end(); });
Version data entries
61 entries across 61 versions & 3 rubygems