Urara-Blog/node_modules/.pnpm-store/v3/files/44/fb4418d8a9e7ee8219722a4dd01312541186b58c434866564d8055fd64b84ea3b6ff0c4b4e646ee16ac98545f36ae32d5b3526914e683f6fd05e25eb224758
2022-08-14 01:14:53 +08:00

17 lines
438 B
Text

'use strict';
var trimEnd = 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 () { trimEnd(undefined, 'a'); }, TypeError, 'undefined is not an object');
st['throws'](function () { trimEnd(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(trimEnd, t);
t.end();
});