-
-
Save anonymous/a13a455a05f98cbf9c73 to your computer and use it in GitHub Desktop.
pkgcloud getFiles() test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
,"with download=true and multiple files": { | |
topic: function () { | |
providerClient.getFiles('two-file-container', true, this.callback); | |
} | |
// This callback will be called N times (once per downloaded file) | |
,"should return created file": function (err, files) { | |
assert.isNull(err); | |
require('util').error(files); | |
assert.ok(files.some(function (file) { | |
assert.assertFile(file); | |
return testContext.file.name === file.name; | |
})); | |
assert.assertNock(nock); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment