storage: verifyConfig is now async

This commit is contained in:
Girish Ramakrishnan
2022-04-14 07:59:50 -05:00
parent a39e0ab934
commit 11f7be2065
6 changed files with 75 additions and 89 deletions
+2 -4
View File
@@ -148,12 +148,10 @@ async function remount(apiConfig) {
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'remount is not implemented');
}
function testConfig(apiConfig, callback) {
async function testConfig(apiConfig) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof callback, 'function');
// Result: none - first callback argument error if config does not pass the test
callback(new BoxError(BoxError.NOT_IMPLEMENTED, 'testConfig is not implemented'));
throw new BoxError(BoxError.NOT_IMPLEMENTED, 'testConfig is not implemented');
}