How to use the @google-cloud/storage.prototype function in @google-cloud/storage

To help you get started, we’ve selected a few @google-cloud/storage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cloudfoundry-incubator / service-fabrik-broker / test / test_broker / iaas.GcpClient.spec.js View on Github external
before(function () {
        sandbox = sinon.createSandbox();
        client = new GcpClient(settings);
        sandbox.stub(GcpStorage.prototype, 'bucket').withArgs(settings.container).returns(bucketStub);
        sandbox.stub(utils, 'streamToPromise').callsFake(utilsStreamToPromiseStub);
      });
      after(function () {

@google-cloud/storage

Cloud Storage Client Library for Node.js

Apache-2.0
Latest version published 4 days ago

Package Health Score

91 / 100
Full package analysis