From 7c04a2d5f08e45d856cd86a5abf6ada1c8127ed1 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Tue, 16 Aug 2016 13:47:46 -0400 Subject: [PATCH] tests: fix assert.throws() usage (#1468) --- packages/google-cloud-vision/test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/google-cloud-vision/test/index.js b/packages/google-cloud-vision/test/index.js index c3abee30efc..777b8510282 100644 --- a/packages/google-cloud-vision/test/index.js +++ b/packages/google-cloud-vision/test/index.js @@ -262,7 +262,7 @@ describe('Vision', function() { assert.throws(function() { vision.detect(IMAGE, type, assert.ifError); - }, 'Requested detection feature not found: ' + type); + }, /Requested detection feature not found: not-real-type/); }); it('should format the correct config', function(done) {