merge the done callback into the main code

This commit is contained in:
Girish Ramakrishnan
2018-02-21 15:15:16 -08:00
parent 727a25f491
commit c39bec8cc1
3 changed files with 32 additions and 31 deletions

View File

@@ -68,7 +68,7 @@ function remove(apiConfig, filename, callback) {
assert.strictEqual(typeof filename, 'string');
assert.strictEqual(typeof callback, 'function');
// Result: none
// Result: none. Should not error if file is not found
callback(new Error('not implemented'));
}
@@ -77,7 +77,7 @@ function removeDir(apiConfig, pathPrefix) {
assert.strictEqual(typeof apiConfig, 'object');
assert.strictEqual(typeof pathPrefix, 'string');
// Result: none
// Result: none. Should not error if dir is not found
var events = new EventEmitter();
process.nextTick(function () { events.emit('done', new Error('not implemented')); });
return events;