Skip to content

Commit b9d8dfe

Browse files
authored
docs(samples): add sample for updateJob (#265)
1 parent e0f874f commit b9d8dfe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scheduler/test/test.samples.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ describe('Cloud Scheduler Sample Tests', () => {
3838
jobName = stdout.split('/').pop();
3939
});
4040

41+
it('should update a scheduler job', async () => {
42+
const stdout = execSync(
43+
`node updateJob.js ${PROJECT_ID} ${LOCATION_ID} ${jobName}`
44+
);
45+
assert.match(stdout, /Updated job/);
46+
});
47+
4148
it('should delete a scheduler job', async () => {
4249
const stdout = execSync(
4350
`node deleteJob.js ${PROJECT_ID} ${LOCATION_ID} ${jobName}`

0 commit comments

Comments
 (0)