Urara-Blog/node_modules/.pnpm-store/v3/files/78/92206aa5f836acb72ce28ee6bb32ebb0d332235c1a06fdc5431467b189993b078ab9c8b5cb5208e6b3ec24b34c71068efa96d14d713ae98bac43008142559e
2022-08-14 01:14:53 +08:00

17 lines
434 B
Text

'use strict';
var padEnd = require('../');
var test = require('tape');
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', function (st) {
st['throws'](function () { padEnd(undefined, 'a'); }, TypeError, 'undefined is not an object');
st['throws'](function () { padEnd(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(padEnd, t);
t.end();
});