diff options
| author | Marak <[email protected]> | 2015-07-04 23:42:43 -0700 |
|---|---|---|
| committer | Marak <[email protected]> | 2015-07-04 23:42:43 -0700 |
| commit | 2907c27ca9cf3657188470094a689decda3df65a (patch) | |
| tree | 9ea4717ea4196a86582474e48c4094f68cb10c7d /test | |
| parent | 846e3812575b700c3d930463a3bf47c8fd968097 (diff) | |
| download | faker-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.js | 4 |
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(); |
