Sha256: ba04df2012c8b7aba6f1d7d866dbe423b3ada8bbfd72a2138015a36922891e54

Contents?: true

Size: 426 Bytes

Versions: 52

Compression:

Stored size: 426 Bytes

Contents

'use strict';

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

	runTests(trim, t);

	t.end();
});

Version data entries

52 entries across 52 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.61 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.60 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.59 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.58 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.57 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.56 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.55 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.54 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.53 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.52 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.51 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.50 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.49 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.48 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.47 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.46 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.45 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.44 node_modules/string.prototype.trim/test/index.js
immosquare-cleaner-0.1.43 node_modules/string.prototype.trim/test/index.js