File tree 2 files changed +24
-1
lines changed
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ gulp.task('nsp', function (cb) {
21
21
} ) ;
22
22
23
23
gulp . task ( 'pre-test' , function ( ) {
24
- return gulp . src ( '**/* .js')
24
+ return gulp . src ( [ 'index .js'] )
25
25
. pipe ( excludeGitignore ( ) )
26
26
. pipe ( istanbul ( {
27
27
includeUntested : true
Original file line number Diff line number Diff line change @@ -120,6 +120,29 @@ describe('yeoman-assert', function () {
120
120
} ) ;
121
121
} ) ;
122
122
123
+ describe ( '.textEqual()' , function ( ) {
124
+ it ( 'pass with two similar simple lines' , function ( ) {
125
+ assert . doesNotThrow ( yoAssert . textEqual . bind ( yoAssert ,
126
+ 'I have a yellow cat' ,
127
+ 'I have a yellow cat'
128
+ ) ) ;
129
+ } ) ;
130
+
131
+ it ( 'fails with two different simple lines' , function ( ) {
132
+ assert . throws ( yoAssert . textEqual . bind ( yoAssert ,
133
+ 'I have a yellow cat' ,
134
+ 'I have a brown cat'
135
+ ) ) ;
136
+ } ) ;
137
+
138
+ it ( 'pass with two similar simple lines with different new line types' , function ( ) {
139
+ assert . doesNotThrow ( yoAssert . textEqual . bind ( yoAssert ,
140
+ 'I have a\nyellow cat' ,
141
+ 'I have a\r\nyellow cat'
142
+ ) ) ;
143
+ } ) ;
144
+ } ) ;
145
+
123
146
describe ( '.implement()' , function ( ) {
124
147
beforeEach ( function ( ) {
125
148
this . subject = { foo : noop , bar : noop } ;
You can’t perform that action at this time.
0 commit comments