We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59595ca commit 22a2c96Copy full SHA for 22a2c96
2 files changed
index.js
@@ -15,5 +15,5 @@ class StorageFactory {
15
}
16
17
18
-const storageSystem = StorageFactory.getInstance('GCLOUD');
+const storageSystem = StorageFactory;
19
module.exports = storageSystem;
test/sdk.test.js
@@ -6,8 +6,9 @@ describe('Simple Storage Test', () => {
6
7
//First stage Unit Test
8
it('should run', () => {
9
- let data = storageSystem.upload('smc-v1-dev', '/Users/nitrocode/tmp/dev_key.key', '/Users/nitrocode/tmp/');
10
- console.log(data);
+ let StorageInstance = storageSystem.getInstance('GCLOUD');
+ StorageInstance.download('smc-v1-dev', 'dev_key.key', '/Users/nitrocode/tmp/');
11
+ console.log(StorageInstance);
12
});
13
14
0 commit comments