Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Commit e5364c6

Browse files
committed
Add test case for #22
1 parent 41af2c7 commit e5364c6

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

test/test-android.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,17 @@ describe('MediaScanner tests ', (report, done) => {
9191
})
9292

9393
})
94+
95+
describe('android download manager', (report, done) => {
96+
RNFetchBlob.config({
97+
addAndroidDownloads : {
98+
useDownloadManager : true,
99+
title : 'RNFetchBlob test download success',
100+
description : `File description added by RNFetchblob`,
101+
mediaScannable : true,
102+
mime : "image/png",
103+
notification : true
104+
}
105+
})
106+
.fetch('GET', `${TEST_SERVER_URL}/public/beethoven.mp3`)
107+
})

test/test-init.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const { Assert, Comparer, Info, describe, prop } = RNTest
1717

1818
// test environment variables
1919

20-
prop('FILENAME', `${Platform.OS}-0.5.0-${Date.now()}.png`)
20+
prop('FILENAME', `${Platform.OS}-0.6.0-${Date.now()}.png`)
2121
prop('TEST_SERVER_URL', 'http://localhost:8123')
2222
prop('DROPBOX_TOKEN', 'fsXcpmKPrHgAAAAAAAAAoXZhcXYWdgLpQMan6Tb_bzJ237DXhgQSev12hA-gUXt4')
2323
prop('styles', {
@@ -50,8 +50,8 @@ describe('GET image from server', (report, done) => {
5050
})
5151
})
5252

53-
require('./test-0.1.x-0.4.x')
54-
require('./test-0.5.1')
55-
require('./test-0.5.2')
56-
require('./test-fs')
53+
// require('./test-0.1.x-0.4.x')
54+
// require('./test-0.5.1')
55+
// require('./test-0.5.2')
56+
// require('./test-fs')
5757
require('./test-android')

0 commit comments

Comments
 (0)