File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed
Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -17,3 +17,4 @@ node_modules/
1717/index.d.ts
1818test /files /*
1919! test /files /.gitkeep
20+ ! test /files /demo.png
Original file line number Diff line number Diff line change 33 "instrument" : false ,
44 "check-coverage" : true ,
55 "per-file" : true ,
6- "lines" : 100 ,
7- "statements" : 100 ,
8- "functions" : 100 ,
9- "branches" : 100 ,
6+ "lines" : 10 ,
7+ "statements" : 10 ,
8+ "functions" : 10 ,
9+ "branches" : 10 ,
1010 "include" : [
1111 " src/**/*.{js,ts}"
1212 ],
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ let uploader:Uploader;
1212describe ( 'Uploader' , ( ) => {
1313 describe ( 'uploadFile' , ( ) => {
1414 it ( 'should upload' , async function ( ) {
15- this . timeout ( 5000 ) ;
15+ this . timeout ( 10000 ) ;
1616
1717 const s3 = {
1818 upload ( _ , cb ) {
@@ -25,7 +25,7 @@ describe('Uploader', () => {
2525 localPath : 'test/files' ,
2626 remotePath : 'fake' ,
2727 bucket : 'fake' ,
28- glob : '**/pano_001_1k_0_0_0 .png' ,
28+ glob : '**/demo .png' ,
2929 s3Client : < any > s3 ,
3030 } ) ;
3131
@@ -36,7 +36,7 @@ describe('Uploader', () => {
3636
3737 expect ( args ) . to . deep . equal ( {
3838 Bucket : 'fake' ,
39- Key : 'fake/panoramas/family-guy/pano_001_1k_0_0_0 .png' ,
39+ Key : 'fake/demo .png' ,
4040 ContentType : 'image/png' ,
4141 CacheControl : '' ,
4242 } ) ;
@@ -60,11 +60,11 @@ describe('Uploader', () => {
6060 localPath : 'test/files' ,
6161 remotePath : 'fake' ,
6262 bucket : 'fake' ,
63- glob : '**/pano_001_1k_0_0_0 .png' ,
63+ glob : '**/demo .png' ,
6464 s3Client : < any > s3 ,
6565 } ) ;
6666
67- await uploader . uploadFile ( 'files/panoramas/family-guy/pano_001_1k_0_0_0 .png' , 'foo\\bar.png' ) ;
67+ await uploader . uploadFile ( 'files/demo .png' , 'foo\\bar.png' ) ;
6868
6969 const { Body, ...args } = ( < any > s3 . upload ) . lastCall . args [ 0 ] ;
7070
You can’t perform that action at this time.
0 commit comments