|
@@ -33,7 +33,7 @@ describe('writeFile test', (report, done) => {
|
33
|
33
|
.then((actual) => {
|
34
|
34
|
report(<Assert key="utf8 content should correct" expect={data} actual={actual}/>)
|
35
|
35
|
data += 'base64'
|
36
|
|
- return fs.writeFile(path, 'base64', RNFetchBlob.base64.encode(data))
|
|
36
|
+ return fs.writeFile(path, 'base64', RNFetchBlob.base64.encode('base64'))
|
37
|
37
|
})
|
38
|
38
|
.then(() => fs.readFile(path, 'base64'))
|
39
|
39
|
.then((actual) => {
|
|
@@ -41,7 +41,7 @@ describe('writeFile test', (report, done) => {
|
41
|
41
|
expect={RNFetchBlob.base64.decode(RNFetchBlob.base64.encode(data))}
|
42
|
42
|
actual={RNFetchBlob.base64.decode(actual)}/>)
|
43
|
43
|
data += 'ascii'
|
44
|
|
- return fs.writeFile(path, 'ascii', getASCIIArray(data));
|
|
44
|
+ return fs.writeFile(path, 'ascii', getASCIIArray('ascii'));
|
45
|
45
|
})
|
46
|
46
|
.then(() => fs.readFile(path, 'ascii'))
|
47
|
47
|
.then((actual) => {
|