Skip to content

Commit

Permalink
chore: linting (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Apr 20, 2020
1 parent 97de49d commit 3b29038
Show file tree
Hide file tree
Showing 9 changed files with 1,502 additions and 2,183 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-language/protos/protos.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
var $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util;

// Exported root namespace
var $root = $protobuf.roots._google_cloud_language_3_8_0_protos || ($protobuf.roots._google_cloud_language_3_8_0_protos = {});
var $root = $protobuf.roots._google_cloud_language_4_0_0_protos || ($protobuf.roots._google_cloud_language_4_0_0_protos = {});

$root.google = (function() {

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

18 changes: 16 additions & 2 deletions packages/google-cloud-language/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
{
"updateTime": "2020-04-11T00:27:32.512826Z",
"sources": [
{
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-language.git",
"sha": "e11e643289693bd582f379fc3b9015680811da38"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "cdf13efacdea0649e940452f9c5d320b93735974",
"internalRef": "306783437"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "6f32150677c9784f3c3a7e1949472bd29c9d72c5"
"sha": "52638600f387deb98efb5f9c85fec39e82aa9052"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
// ** 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
28 changes: 13 additions & 15 deletions packages/google-cloud-language/system-test/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,36 +16,34 @@
// ** 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() {
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() {
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 3b29038

Please sign in to comment.