storage: verifyConfig is now async
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user