Skip to content

Commit

Permalink
build: adopt changes to generator formatting (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Apr 22, 2020
1 parent 3b29038 commit 41f96ca
Show file tree
Hide file tree
Showing 9 changed files with 2,454 additions and 1,759 deletions.
536 changes: 268 additions & 268 deletions packages/google-cloud-language/protos/protos.js

Large diffs are not rendered by default.

773 changes: 457 additions & 316 deletions packages/google-cloud-language/src/v1/language_service_client.ts

Large diffs are not rendered by default.

793 changes: 476 additions & 317 deletions packages/google-cloud-language/src/v1beta2/language_service_client.ts

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/google-cloud-language/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-language.git",
"sha": "e11e643289693bd582f379fc3b9015680811da38"
"sha": "69fd6680792b36c2fd73e096b4cb4ac284107b51"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "cdf13efacdea0649e940452f9c5d320b93735974",
"internalRef": "306783437"
"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 language = require('@google-cloud/language');

Expand Down
32 changes: 17 additions & 15 deletions packages/google-cloud-language/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 41f96ca

Please sign in to comment.