diff --git a/contact-center-insights/test/quickstart.js b/contact-center-insights/test/quickstart.js index b3d68a99e8..c2a9f580a5 100644 --- a/contact-center-insights/test/quickstart.js +++ b/contact-center-insights/test/quickstart.js @@ -21,7 +21,9 @@ const path = require('path'); const cp = require('child_process'); const {before, describe, it} = require('mocha'); // eslint-disable-next-line node/no-missing-require -const {ContactCenterInsightsClient} = require('@google-cloud/contact-center-insights'); +const { + ContactCenterInsightsClient, +} = require('@google-cloud/contact-center-insights'); // eslint-disable-next-line no-unused-vars, node/no-missing-require const {assert} = require('chai'); @@ -29,25 +31,19 @@ const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'}); const cwd = path.join(__dirname, '..'); -const client = new {ContactCenterInsightsClient}(); +const client = new ContactCenterInsightsClient(); describe('Quickstart', () => { - //TODO: remove this if not using the projectId - // eslint-disable-next-line no-unused-vars let projectId; before(async () => { - // eslint-disable-next-line no-unused-vars projectId = await client.getProjectId(); }); it('should run quickstart', async () => { - //TODO: remove this line - // eslint-disable-next-line no-unused-vars - const stdout = execSync( - `node ./quickstart.js`, - {cwd} - ); - //assert(stdout, stdout !== null); + const stdout = execSync(`node ./quickstart.js ${projectId} us-central1`, { + cwd, + }); + assert.match(stdout, /\[\]/); }); });