Skip to content

Commit 66b43c5

Browse files
author
Guiners
committed
adding samples, test, lints
1 parent b8809cc commit 66b43c5

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

genai/test/tuning-job-list.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ const {describe, it} = require('mocha');
2020
const projectId = process.env.CAIP_PROJECT_ID;
2121
const sample = require('../tuning/tuning-job-list.js');
2222

23-
describe('tuning-job-list', async () => {
24-
it('should generate streaming text content from a text prompt', async () => {
25-
const output = await sample.generateContent(projectId);
26-
assert.isTrue(output);
23+
describe('tuning-job-list', () => {
24+
it('should return tuning job list', async () => {
25+
const output = await sample.generateContent('TestJobName', projectId);
26+
assert(output);
2727
});
2828
});

genai/tuning/tuning-job-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function generateContent(
3939
}
4040
}
4141

42-
return true;
42+
return responses;
4343
}
4444
// [END googlegenaisdk_tuning_job_list]
4545

0 commit comments

Comments
 (0)