Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2012 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a13a455a05f98cbf9c73 to your computer and use it in GitHub Desktop.
Save anonymous/a13a455a05f98cbf9c73 to your computer and use it in GitHub Desktop.
pkgcloud getFiles() test
,"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