|
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 auth.js`; |
| 22 | +const cwd = path.join(__dirname, '..'); |
| 23 | +const cmd = 'node auth.js'; |
24 | 24 |
|
25 | | -test.before(tools.checkCredentials); |
| 25 | +before(tools.checkCredentials); |
26 | 26 |
|
27 | | -test.serial(`should load credentials implicitly`, async t => { |
| 27 | +it('should load credentials implicitly', async () => { |
28 | 28 | const output = await tools.runAsync(`${cmd} auth-cloud-implicit`, cwd); |
29 | | - t.is(output.includes(`Buckets:`), true); |
| 29 | + assert.strictEqual(output.includes('Buckets:'), true); |
30 | 30 | }); |
31 | 31 |
|
32 | | -test.serial(`should load credentials explicitly`, async t => { |
| 32 | +it('should load credentials explicitly', async () => { |
33 | 33 | const output = await tools.runAsync(`${cmd} auth-cloud-explicit`, cwd); |
34 | | - t.is(output.includes(`Buckets:`), true); |
| 34 | + assert.strictEqual(output.includes('Buckets:'), true); |
35 | 35 | }); |
0 commit comments