diff --git a/translate/package.json b/translate/package.json index 19ab438e92c..5300b63bf51 100644 --- a/translate/package.json +++ b/translate/package.json @@ -8,7 +8,8 @@ "node": ">=8" }, "scripts": { - "test": "mocha --recursive --timeout 90000" + "test": "mocha --recursive --timeout 90000", + "test-v3": "mocha ./test/v3beta1/*.js" }, "dependencies": { "@google-cloud/automl": "^1.0.0", diff --git a/translate/quickstart.js b/translate/quickstart.js index 1798e4316c6..65d00c900c7 100644 --- a/translate/quickstart.js +++ b/translate/quickstart.js @@ -15,10 +15,10 @@ 'use strict'; -// [START translate_quickstart] -async function quickstart( +async function main( projectId = 'YOUR_PROJECT_ID' // Your GCP Project Id ) { + // [START translate_quickstart] // Imports the Google Cloud client library const {Translate} = require('@google-cloud/translate'); @@ -39,4 +39,4 @@ async function quickstart( // [END translate_quickstart] const args = process.argv.slice(2); -quickstart(...args).catch(console.error); +main(...args).catch(console.error);