Sha256: d404d55b3d40947e16a588eff2583bcf728093fa7f143e657eb52a61faf28fd5

Contents?: true

Size: 447 Bytes

Versions: 51

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

51 entries across 50 versions & 6 rubygems

Version Path
immosquare-cleaner-0.1.28 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.27 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.26 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.25 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.24 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.23 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.22 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.21 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.20 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.19 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.18 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.17 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.16 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.14 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.13 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.12 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.11 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.10 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.9 node_modules/string.prototype.trimstart/test/index.js
immosquare-cleaner-0.1.8 node_modules/string.prototype.trimstart/test/index.js