Skip to content

Commit

Permalink
test: address failing sample tests (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe authored Aug 13, 2021
1 parent 48439d1 commit 41ef299
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/google-cloud-lifesciences/samples/test/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ const path = require('path');
const cp = require('child_process');
const {describe, it} = require('mocha');
// eslint-disable-next-line node/no-missing-require
const {assert} = require('chai');
const assert = require('assert');

const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});

const cwd = path.join(__dirname, '..');

describe('Quickstart', () => {
it('should run quickstart', async () => {
const stdout = execSync(
'node ./quickstart.js long-door-651 us-central1 15945335513149178558',
{cwd}
);
// eslint-disable-next-line no-undef
assert.match(stdout, /Operation/);
assert.throws(() => {
execSync(
'node ./quickstart.js long-door-651 us-central1 15945335513149178558',
{cwd}
);
}, /NOT_FOUND/);
});
});

0 comments on commit 41ef299

Please sign in to comment.