diff options
| author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 | 
|---|---|---|
| committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 | 
| commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
| tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/wordwrap/test/wrap.js | |
| parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) | |
remove node_modules
Diffstat (limited to 'node_modules/wordwrap/test/wrap.js')
| -rw-r--r-- | node_modules/wordwrap/test/wrap.js | 31 | 
1 files changed, 0 insertions, 31 deletions
diff --git a/node_modules/wordwrap/test/wrap.js b/node_modules/wordwrap/test/wrap.js deleted file mode 100644 index 0cfb76d17..000000000 --- a/node_modules/wordwrap/test/wrap.js +++ /dev/null @@ -1,31 +0,0 @@ -var assert = require('assert'); -var wordwrap = require('wordwrap'); - -var fs = require('fs'); -var idleness = fs.readFileSync(__dirname + '/idleness.txt', 'utf8'); - -exports.stop80 = function () { -    var lines = wordwrap(80)(idleness).split(/\n/); -    var words = idleness.split(/\s+/); -     -    lines.forEach(function (line) { -        assert.ok(line.length <= 80, 'line > 80 columns'); -        var chunks = line.match(/\S/) ? line.split(/\s+/) : []; -        assert.deepEqual(chunks, words.splice(0, chunks.length)); -    }); -}; - -exports.start20stop60 = function () { -    var lines = wordwrap(20, 100)(idleness).split(/\n/); -    var words = idleness.split(/\s+/); -     -    lines.forEach(function (line) { -        assert.ok(line.length <= 100, 'line > 100 columns'); -        var chunks = line -            .split(/\s+/) -            .filter(function (x) { return x.match(/\S/) }) -        ; -        assert.deepEqual(chunks, words.splice(0, chunks.length)); -        assert.deepEqual(line.slice(0, 20), new Array(20 + 1).join(' ')); -    }); -};  | 
