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 Sep 17, 2020
1 parent e0f874f commit b9d8dfe
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 b9d8dfe

Please sign in to comment.