Sha256: 6eb2a5a57247c7eb45af3e39dd05fb87fe5598a9ac9387a78b7cd607635c57ae
Contents?: true
Size: 438 Bytes
Versions: 63
Compression:
Stored size: 438 Bytes
Contents
'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(); });
Version data entries
63 entries across 62 versions & 7 rubygems