Sha256: d404d55b3d40947e16a588eff2583bcf728093fa7f143e657eb52a61faf28fd5

Contents?: true

Size: 447 Bytes

Versions: 50

Compression:

Stored size: 447 Bytes

Contents

'use strict';

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

	runTests(trimStart, t);

	t.end();
});

Version data entries

50 entries across 49 versions & 6 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.50 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.49 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.48 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.47 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.46 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.45 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.44 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.43 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.42 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.41 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.40 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.39 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.38 node_modules/string.prototype.trimstart/test/index.js
optimacms-0.1.61 spec/dummy/node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.32 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.31 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.30 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.29 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.28 node_modules/string.prototype.trimstart/test/index.js