Skip to content

Commit bcf25d8

Browse files
chore: enable --throw-deprecation on mocha config (#147)
1 parent 554413a commit bcf25d8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/google-cloud-vision/test/helpers.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('Vision helper methods', () => {
2929
projectId: 'bogus',
3030
});
3131

32-
const sandbox = sinon.sandbox.create();
32+
const sandbox = sinon.createSandbox();
3333

3434
afterEach(() => {
3535
sandbox.restore();
@@ -480,7 +480,7 @@ describe('Vision helper methods', () => {
480480
});
481481

482482
it('creates and promisify methods that are available in certain versions', () => {
483-
const client = new vision.v1p3beta1.ImageAnnotatorClient();
483+
const client = new vision.v1p3beta1.ImageAnnotatorClient(CREDENTIALS);
484484
const request = {
485485
image: {
486486
source: {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
--require intelli-espower-loader
22
--timeout 10000
3+
--throw-deprecation

0 commit comments

Comments
 (0)