You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: test.js
+13-13
Original file line number
Diff line number
Diff line change
@@ -8,62 +8,62 @@ var str = 'A project without documentation is like a project that doesn\'t exist
8
8
9
9
describe('wrap',function(){
10
10
it('should use defaults to wrap words in the given string:',function(){
11
-
assert.equal(wrap(str),'A project without documentation is like a project \nthat doesn\'t exist. Verb solves this by making it \ndead simple to generate project documentation, \nusing simple markdown templates, with zero \nconfiguration required. ');
11
+
assert.equal(wrap(str),'A project without documentation is like a project \n that doesn\'t exist. Verb solves this by making it \n dead simple to generate project documentation, \n using simple markdown templates, with zero \n configuration required. ');
12
12
});
13
13
14
14
it('should wrap to the specified width:',function(){
15
-
assert.equal(wrap(str,{width: 40}),'A project without documentation is like \na project that doesn\'t exist. Verb \nsolves this by making it dead simple to \ngenerate project documentation, using \nsimple markdown templates, with zero \nconfiguration required. ');
15
+
assert.equal(wrap(str,{width: 40}),'A project without documentation is like \n a project that doesn\'t exist. Verb \n solves this by making it dead simple to \n generate project documentation, using \n simple markdown templates, with zero \n configuration required. ');
16
16
});
17
17
18
18
it('should indent the specified amount:',function(){
19
19
assert.equal(wrap(str,{indent: ' '}),' A project without documentation is like a project \n that doesn\'t exist. Verb solves this by making it \n dead simple to generate project documentation, \n using simple markdown templates, with zero \n configuration required. ');
20
20
});
21
21
22
22
it('should use the given string for newlines:',function(){
23
-
assert.equal(wrap(str,{newline: '\n\n-'}),'A project without documentation is like a project \n\n-that doesn\'t exist. Verb solves this by making it \n\n-dead simple to generate project documentation, \n\n-using simple markdown templates, with zero \n\n-configuration required. ');
23
+
assert.equal(wrap(str,{newline: '\n\n-'}),'A project without documentation is like a project \n\n-that doesn\'t exist. Verb solves this by making it \n\n-dead simple to generate project documentation, \n\n-using simple markdown templates, with zero \n\n-configuration required. ');
24
24
});
25
25
26
26
it('should run the escape function on each line',function(){
'A project without documentation is like a project \nthat doesn\\\'t exist. Verb solves this by making it \ndead simple to generate project documentation, \nusing simple markdown templates, with zero \nconfiguration required. '
29
+
'A project without documentation is like a project \n that doesn\\\'t exist. Verb solves this by making it \n dead simple to generate project documentation, \n using simple markdown templates, with zero \n configuration required. '
30
30
)
31
31
});
32
32
33
33
it('should trim trailing whitespace:',function(){
34
-
assert.equal(wrap(str,{trim: true}),'A project without documentation is like a project\nthat doesn\'t exist. Verb solves this by making it\ndead simple to generate project documentation,\nusing simple markdown templates, with zero\nconfiguration required.');
34
+
assert.equal(wrap(str,{trim: true}),'A project without documentation is like a project\n that doesn\'t exist. Verb solves this by making it\n dead simple to generate project documentation,\n using simple markdown templates, with zero\n configuration required.');
35
35
});
36
36
37
37
it('should trim trailing whitespace (even for empty lines):',function(){
assert.equal(wrap('Supercalifragilisticexpialidocious and Supercalifragilisticexpialidocious',{width:24,cut:true}),'Supercalifragilisticexpi\nalidocious and Supercali\nfragilisticexpialidociou\ns');
60
+
assert.equal(wrap('Supercalifragilisticexpialidocious and Supercalifragilisticexpialidocious',{width:24,cut:true}),'Supercalifragilisticexpi\n alidocious and Supercali\n fragilisticexpialidociou\n s');
61
61
});
62
62
63
63
it('should wrap on zero space characters',function(){
0 commit comments