Skip to content

Commit

Permalink
build: adopt changes to generator formatting (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Apr 22, 2020
1 parent 78cf304 commit f3e0044
Show file tree
Hide file tree
Showing 9 changed files with 2,951 additions and 2,194 deletions.
328 changes: 164 additions & 164 deletions packages/google-cloud-oslogin/protos/protos.js

Large diffs are not rendered by default.

812 changes: 476 additions & 336 deletions packages/google-cloud-oslogin/src/v1/os_login_service_client.ts

Large diffs are not rendered by default.

824 changes: 488 additions & 336 deletions packages/google-cloud-oslogin/src/v1beta/os_login_service_client.ts

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/google-cloud-oslogin/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-os-login.git",
"sha": "e41bec8bc5a9c129196a1523bc99a5e00262a174"
"sha": "7f6a0a74e526e7cc8f2283874915e231546c4ad2"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "3028060618e8024af9a32b3ab3456c160091ecb7",
"internalRef": "306450502"
"sha": "42ee97c1b93a0e3759bbba3013da309f670a90ab",
"internalRef": "307114445"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "52638600f387deb98efb5f9c85fec39e82aa9052"
"sha": "19465d3ec5e5acdb01521d8f3bddd311bcbee28d"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **


/* eslint-disable node/no-missing-require, no-unused-vars */
const oslogin = require('@google-cloud/os-login');

Expand Down
32 changes: 17 additions & 15 deletions packages/google-cloud-oslogin/system-test/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,36 @@
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **

import { packNTest } from 'pack-n-play';
import { readFileSync } from 'fs';
import { describe, it } from 'mocha';
import {packNTest} from 'pack-n-play';
import {readFileSync} from 'fs';
import {describe, it} from 'mocha';

describe('typescript consumer tests', () => {

it('should have correct type signature for typescript users', async function() {
it('should have correct type signature for typescript users', async function () {
this.timeout(300000);
const options = {
packageDir: process.cwd(), // path to your module.
packageDir: process.cwd(), // path to your module.
sample: {
description: 'typescript based user can use the type definitions',
ts: readFileSync('./system-test/fixtures/sample/src/index.ts').toString()
}
ts: readFileSync(
'./system-test/fixtures/sample/src/index.ts'
).toString(),
},
};
await packNTest(options); // will throw upon error.
await packNTest(options); // will throw upon error.
});

it('should have correct type signature for javascript users', async function() {
it('should have correct type signature for javascript users', async function () {
this.timeout(300000);
const options = {
packageDir: process.cwd(), // path to your module.
packageDir: process.cwd(), // path to your module.
sample: {
description: 'typescript based user can use the type definitions',
ts: readFileSync('./system-test/fixtures/sample/src/index.js').toString()
}
ts: readFileSync(
'./system-test/fixtures/sample/src/index.js'
).toString(),
},
};
await packNTest(options); // will throw upon error.
await packNTest(options); // will throw upon error.
});

});
Loading

0 comments on commit f3e0044

Please sign in to comment.