File tree 1 file changed +3
-5
lines changed 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -194,11 +194,10 @@ describe('utils.vfs#transformArrayBuffer', () => {
194
194
const testAbString = ab2str ( testAb ) ;
195
195
const create = type => vfs . transformArrayBuffer ( testAb , 'text/plain' , type ) ;
196
196
197
- /* FIXME
198
197
test ( 'Should create string' , ( ) =>
199
198
create ( 'string' )
200
- .then(result => expect( result).toBe('foo ')));
201
- */
199
+ . then ( result => result . replace ( / \0 / g , ' ') )
200
+ . then ( result => expect ( result ) . toBe ( testText ) ) ) ;
202
201
203
202
test ( 'Should create data url' , async ( ) => {
204
203
const result = await create ( 'uri' ) ;
@@ -210,12 +209,11 @@ describe('utils.vfs#transformArrayBuffer', () => {
210
209
expect ( index ) . not . toBe ( - 1 ) ;
211
210
} ) ;
212
211
213
- /* FIXME
214
212
test ( 'Should create blob' , ( ) =>
215
213
create ( 'blob' )
216
214
. then ( blob2str )
215
+ . then ( result => result . replace ( / \0 / g, '' ) )
217
216
. then ( result => expect ( result ) . toBe ( testText ) ) ) ;
218
- */
219
217
220
218
test ( 'Should create arraybuffer (default)' , ( ) =>
221
219
create ( 'arraybuffer' )
You can’t perform that action at this time.
0 commit comments