diff --git a/test/Uint8Array.fromBase64.js b/test/Uint8Array.fromBase64.js index e79766f..b83749d 100644 --- a/test/Uint8Array.fromBase64.js +++ b/test/Uint8Array.fromBase64.js @@ -14,7 +14,7 @@ var shimName = 'Uint8Array.fromBase64'; module.exports = { tests: function (t, method) { - t.test({ skip: typeof Uint8Array === 'function' }, 'Uint8Arrays not supported', function (st) { + t.test('Uint8Arrays not supported', { skip: typeof Uint8Array === 'function' }, function (st) { st['throws']( function () { return method(''); }, SyntaxError, @@ -24,7 +24,7 @@ module.exports = { st.end(); }); - t.test({ skip: typeof Uint8Array !== 'function' }, 'Uint8Arrays supported', function (st) { + t.test('Uint8Arrays supported', { skip: typeof Uint8Array !== 'function' }, function (st) { st['throws']( function () { return method('F'); }, SyntaxError, diff --git a/test/Uint8Array.fromHex.js b/test/Uint8Array.fromHex.js index 14a9daf..5ea6b61 100644 --- a/test/Uint8Array.fromHex.js +++ b/test/Uint8Array.fromHex.js @@ -14,7 +14,7 @@ var shimName = 'Uint8Array.fromHex'; module.exports = { tests: function (t, method) { - t.test({ skip: typeof Uint8Array === 'function' }, 'Uint8Arrays not supported', function (st) { + t.test('Uint8Arrays not supported', { skip: typeof Uint8Array === 'function' }, function (st) { st['throws']( function () { return method(''); }, SyntaxError, @@ -24,7 +24,7 @@ module.exports = { st.end(); }); - t.test({ skip: typeof Uint8Array !== 'function' }, 'Uint8Arrays supported', function (st) { + t.test('Uint8Arrays supported', { skip: typeof Uint8Array !== 'function' }, function (st) { st['throws']( function () { return method('F'); }, SyntaxError, diff --git a/test/Uint8Array.prototype.setFromBase64.js b/test/Uint8Array.prototype.setFromBase64.js index 7665153..f80f41c 100644 --- a/test/Uint8Array.prototype.setFromBase64.js +++ b/test/Uint8Array.prototype.setFromBase64.js @@ -15,7 +15,7 @@ var shimName = 'Uint8Array.prototype.setFromBase64'; module.exports = { tests: function (t, method) { - t.test({ skip: typeof Uint8Array === 'function' }, 'Uint8Arrays not supported', function (st) { + t.test('Uint8Arrays not supported', { skip: typeof Uint8Array === 'function' }, function (st) { st['throws']( function () { return method(''); }, SyntaxError, @@ -25,7 +25,7 @@ module.exports = { st.end(); }); - t.test({ skip: typeof Uint8Array !== 'function' }, 'Uint8Arrays supported', function (st) { + t.test('Uint8Arrays supported', { skip: typeof Uint8Array !== 'function' }, function (st) { var arr = new Uint8Array(12); arr[0] = 1; diff --git a/test/Uint8Array.prototype.setFromHex.js b/test/Uint8Array.prototype.setFromHex.js index 865e24f..ba1f6fd 100644 --- a/test/Uint8Array.prototype.setFromHex.js +++ b/test/Uint8Array.prototype.setFromHex.js @@ -15,7 +15,7 @@ var shimName = 'Uint8Array.prototype.setFromHex'; module.exports = { tests: function (t, method) { - t.test({ skip: typeof Uint8Array === 'function' }, 'Uint8Arrays not supported', function (st) { + t.test('Uint8Arrays not supported', { skip: typeof Uint8Array === 'function' }, function (st) { st['throws']( function () { return method(''); }, SyntaxError, @@ -25,7 +25,7 @@ module.exports = { st.end(); }); - t.test({ skip: typeof Uint8Array !== 'function' }, 'Uint8Arrays supported', function (st) { + t.test('Uint8Arrays supported', { skip: typeof Uint8Array !== 'function' }, function (st) { var arr = new Uint8Array(256); arr[0] = 1; @@ -89,7 +89,6 @@ module.exports = { t.equal(impl, polyfill, 'implementation is polyfill itself'); module.exports.tests(t, callBind(impl)); - t.end(); }); }, diff --git a/test/Uint8Array.prototype.toBase64.js b/test/Uint8Array.prototype.toBase64.js index f63123e..cfffa6c 100644 --- a/test/Uint8Array.prototype.toBase64.js +++ b/test/Uint8Array.prototype.toBase64.js @@ -16,7 +16,7 @@ var shimName = 'Uint8Array.prototype.' + methodName; module.exports = { tests: function (t, method) { - t.test({ skip: typeof Uint8Array === 'function' }, 'Uint8Arrays not supported', function (st) { + t.test('Uint8Arrays not supported', { skip: typeof Uint8Array === 'function' }, function (st) { st['throws']( function () { return method(); }, SyntaxError, @@ -26,7 +26,7 @@ module.exports = { st.end(); }); - t.test({ skip: typeof Uint8Array !== 'function' }, 'Uint8Arrays supported', function (st) { + t.test('Uint8Arrays supported', { skip: typeof Uint8Array !== 'function' }, function (st) { st.deepEqual(method(new Uint8Array([])), '', 'empty array produces empty string'); var array = new Uint8Array([251, 255, 191]); diff --git a/test/Uint8Array.prototype.toHex.js b/test/Uint8Array.prototype.toHex.js index e5e3fbd..1b86ae7 100644 --- a/test/Uint8Array.prototype.toHex.js +++ b/test/Uint8Array.prototype.toHex.js @@ -17,7 +17,7 @@ var shimName = 'Uint8Array.prototype.' + methodName; module.exports = { tests: function (t, method) { - t.test({ skip: typeof Uint8Array === 'function' }, 'Uint8Arrays not supported', function (st) { + t.test('Uint8Arrays not supported', { skip: typeof Uint8Array === 'function' }, function (st) { st['throws']( function () { return method(); }, SyntaxError, @@ -27,7 +27,7 @@ module.exports = { st.end(); }); - t.test({ skip: typeof Uint8Array !== 'function' }, 'Uint8Arrays supported', function (st) { + t.test('Uint8Arrays supported', { skip: typeof Uint8Array !== 'function' }, function (st) { st.deepEqual(method(new Uint8Array([])), '', 'empty array produces empty string'); var array = new Uint8Array([251, 255, 191]);