|
15 | 15 |
|
16 | 16 | 'use strict';
|
17 | 17 |
|
18 |
| -const path = require(`path`); |
19 |
| -const test = require(`ava`); |
20 |
| -const tools = require(`@google-cloud/nodejs-repo-tools`); |
| 18 | +const path = require('path'); |
| 19 | +const assert = require('assert'); |
| 20 | +const tools = require('@google-cloud/nodejs-repo-tools'); |
21 | 21 |
|
22 |
| -const cwd = path.join(__dirname, `..`); |
23 |
| -const cmd = `node snippets.js`; |
| 22 | +const cwd = path.join(__dirname, '..'); |
| 23 | +const cmd = 'node snippets.js'; |
24 | 24 |
|
25 |
| -test.before(tools.checkCredentials); |
| 25 | +before(tools.checkCredentials); |
26 | 26 |
|
27 |
| -test.serial(`should setup using implicit credentials`, async t => { |
28 |
| - t.plan(0); |
| 27 | +it('should setup using implicit credentials', async () => |
29 | 28 | // There's no output, the command should just succeed
|
30 |
| - await tools.runAsync(`${cmd} setup-implicit`, cwd); |
31 |
| -}); |
| 29 | + await tools.runAsync(`${cmd} setup-implicit`, cwd)); |
32 | 30 |
|
33 |
| -test.serial(`should report errors manually`, async t => { |
| 31 | +it('should report errors manually', async () => { |
34 | 32 | const output = await tools.runAsync(`${cmd} manual`, cwd);
|
35 |
| - t.is(output.includes('Done reporting error event!'), true); |
36 |
| - t.is(output.includes('Done reporting Error object!'), true); |
37 |
| - t.is(output.includes('Done reporting error string!'), true); |
| 33 | + assert.strictEqual(output.includes('Done reporting error event!'), true); |
| 34 | + assert.strictEqual(output.includes('Done reporting Error object!'), true); |
| 35 | + assert.strictEqual(output.includes('Done reporting error string!'), true); |
38 | 36 | });
|
0 commit comments