aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarak <[email protected]>2015-07-04 23:42:43 -0700
committerMarak <[email protected]>2015-07-04 23:42:43 -0700
commit2907c27ca9cf3657188470094a689decda3df65a (patch)
tree9ea4717ea4196a86582474e48c4094f68cb10c7d /test
parent846e3812575b700c3d930463a3bf47c8fd968097 (diff)
downloadfaker-2907c27ca9cf3657188470094a689decda3df65a.tar.xz
faker-2907c27ca9cf3657188470094a689decda3df65a.zip
[api] [fix] Remove tabs from paragraph generation. Make paragraph separator configurable. Closes #223
Diffstat (limited to 'test')
-rw-r--r--test/lorem.unit.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lorem.unit.js b/test/lorem.unit.js
index 3b554d47..4fecb4ba 100644
--- a/test/lorem.unit.js
+++ b/test/lorem.unit.js
@@ -158,7 +158,7 @@ describe("lorem.js", function () {
var paragraphs = faker.lorem.paragraphs();
assert.ok(typeof paragraphs === 'string');
- var parts = paragraphs.split('\n \r\t');
+ var parts = paragraphs.split('\n \r');
assert.equal(parts.length, 3);
assert.ok(faker.lorem.paragraph.calledThrice);
@@ -172,7 +172,7 @@ describe("lorem.js", function () {
var paragraphs = faker.lorem.paragraphs(5);
assert.ok(typeof paragraphs === 'string');
- var parts = paragraphs.split('\n \r\t');
+ var parts = paragraphs.split('\n \r');
assert.equal(parts.length, 5);
faker.lorem.paragraph.restore();