Skip to content

Commit 5c2c985

Browse files
committed
fix: resolve linting
1 parent 438c4d2 commit 5c2c985

8 files changed

+10
-9
lines changed

generative-ai/snippets/test/countTokens.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ const {assert} = require('chai');
1818
const {describe, it} = require('mocha');
1919
const cp = require('child_process');
2020
const execSync = cmd => cp.execSync(cmd, {encoding: 'utf-8'});
21-
21+
2222
const projectId = process.env.CAIP_PROJECT_ID;
2323
const location = process.env.LOCATION;
2424
const model = 'gemini-1.0-pro';
2525

26-
describe('Count tokens', async () => {
26+
describe('Count tokens', async () => {
2727
/**
2828
* TODO(developer): Uncomment these variables before running the sample.\
2929
* (Not necessary if passing values as arguments)
3030
*/
3131
// const projectId = 'YOUR_PROJECT_ID';
3232
// const location = 'YOUR_LOCATION';
3333
// const model = 'gemini-1.0-pro';
34-
34+
3535
it('should count tokens', async () => {
3636
const output = execSync(
3737
`node ./countTokens.js ${projectId} ${location} ${model}`

generative-ai/snippets/test/nonStreamingChat.test.js

+1
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,4 @@ describe('Generative AI NonStreaming Chat', async () => {
4444
assert(output.match(/User: How can I learn more about that?/));
4545
});
4646
});
47+
});

generative-ai/snippets/test/safetySettings.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Safety settings', async () => {
3131
// const projectId = 'YOUR_PROJECT_ID';
3232
// const location = 'YOUR_LOCATION';
3333
// const model = 'gemini-1.0-pro';
34-
34+
3535
it('should reject a dangerous request', async () => {
3636
const output = execSync(
3737
`node ./safetySettings.js ${projectId} ${location} ${model}`

generative-ai/snippets/test/sendMultiModalPromptWithImage.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Generative AI Stream MultiModal with Image', () => {
3131
// const projectId = 'YOUR_PROJECT_ID';
3232
// const location = 'YOUR_LOCATION';
3333
// const model = 'gemini-1.0-pro-vision';
34-
34+
3535
it('should create stream multimodal content', async () => {
3636
const output = execSync(
3737
`node ./sendMultiModalPromptWithImage.js ${projectId} ${location} ${model}`

generative-ai/snippets/test/sendMultiModalPromptWithVideo.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Generative AI Stream MultiModal with Video', () => {
3131
// const projectId = 'YOUR_PROJECT_ID';
3232
// const location = 'YOUR_LOCATION';
3333
// const model = 'gemini-1.0-pro-vision';
34-
34+
3535
it('should create stream multimodal content', async () => {
3636
const output = execSync(
3737
`node ./sendMultiModalPromptWithVideo.js ${projectId} ${location} ${model}`

generative-ai/snippets/test/streamChat.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Generative AI Stream Chat', () => {
3131
// const projectId = 'YOUR_PROJECT_ID';
3232
// const location = 'YOUR_LOCATION';
3333
// const model = 'gemini-1.0-pro';
34-
34+
3535
it('should create stream chat and begin the conversation the same in each instance', async () => {
3636
const output = execSync(
3737
`node ./streamChat.js ${projectId} ${location} ${model}`

generative-ai/snippets/test/streamContent.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Generative AI Stream Content', () => {
3131
// const projectId = 'YOUR_PROJECT_ID';
3232
// const location = 'YOUR_LOCATION';
3333
// const model = 'gemini-1.0-pro';
34-
34+
3535
it('should create stream content', async () => {
3636
const output = execSync(
3737
`node ./streamContent.js ${projectId} ${location} ${model}`

generative-ai/snippets/test/streamMultipartContent.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('Generative AI Stream Multipart Content', () => {
3131
// const projectId = 'YOUR_PROJECT_ID';
3232
// const location = 'YOUR_LOCATION';
3333
// const model = 'gemini-1.0-pro-vision';
34-
34+
3535
const image = 'gs://generativeai-downloads/images/scones.jpg';
3636

3737
it('should create stream multipart content', async () => {

0 commit comments

Comments
 (0)