Skip to content

Commit 22a2c96

Browse files
committed
Reset Reintialization of storage instace
1 parent 59595ca commit 22a2c96

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ class StorageFactory {
1515
}
1616
}
1717

18-
const storageSystem = StorageFactory.getInstance('GCLOUD');
18+
const storageSystem = StorageFactory;
1919
module.exports = storageSystem;

test/sdk.test.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ describe('Simple Storage Test', () => {
66

77
//First stage Unit Test
88
it('should run', () => {
9-
let data = storageSystem.upload('smc-v1-dev', '/Users/nitrocode/tmp/dev_key.key', '/Users/nitrocode/tmp/');
10-
console.log(data);
9+
let StorageInstance = storageSystem.getInstance('GCLOUD');
10+
StorageInstance.download('smc-v1-dev', 'dev_key.key', '/Users/nitrocode/tmp/');
11+
console.log(StorageInstance);
1112
});
1213

1314
});

0 commit comments

Comments
 (0)