Skip to content

Commit

Permalink
docs(samples): add sample for updateJob (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsk authored and Ace Nassri committed Nov 15, 2022
1 parent dc0f3ec commit 47654cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scheduler/test/test.samples.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ describe('Cloud Scheduler Sample Tests', () => {
jobName = stdout.split('/').pop();
});

it('should update a scheduler job', async () => {
const stdout = execSync(
`node updateJob.js ${PROJECT_ID} ${LOCATION_ID} ${jobName}`
);
assert.match(stdout, /Updated job/);
});

it('should delete a scheduler job', async () => {
const stdout = execSync(
`node deleteJob.js ${PROJECT_ID} ${LOCATION_ID} ${jobName}`
Expand Down

0 comments on commit 47654cd

Please sign in to comment.