Skip to content

Instantly share code, notes, and snippets.

@stephenplusplus
Last active October 4, 2018 18:20
Show Gist options
  • Select an option

  • Save stephenplusplus/3a1dca80ce7c6531c2af932ce4f895f3 to your computer and use it in GitHub Desktop.

Select an option

Save stephenplusplus/3a1dca80ce7c6531c2af932ce4f895f3 to your computer and use it in GitHub Desktop.
diff --git a/system-test/storage.ts b/system-test/storage.ts
index 15465b9..a096b65 100644
--- a/system-test/storage.ts
+++ b/system-test/storage.ts
@@ -111,6 +111,7 @@ describe('storage', () => {
process.env.GOOGLE_APPLICATION_CREDENTIALS;
delete process.env.GOOGLE_APPLICATION_CREDENTIALS;
+ delete require.cache[require.resolve('../src')];
const {Storage} = require('../src');
storageWithoutAuth = new Storage();
@@ -154,7 +155,7 @@ describe('storage', () => {
file = bucket.file(privateFile.id);
});
- it('should not download a file', done => {
+ it.only('should not download a file', done => {
file.download(err => {
assert(err.message.indexOf('does not have storage.objects.get') > -1);
done();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment