Skip to content

Commit

Permalink
config.updateCellMinutes
Browse files Browse the repository at this point in the history
  • Loading branch information
horothesun committed Jan 21, 2021
1 parent 85b399a commit 043a1f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const config = {
'workflow_read_token': 'WORKFLOW_READ_TOKEN - DO NOT SPECIFY - POPULATED AUTOMATICALLY'
'workflow_read_token': 'WORKFLOW_READ_TOKEN - DO NOT SPECIFY - POPULATED AUTOMATICALLY',
'updateCellMinutes': 10
}

module.exports = { config }
2 changes: 1 addition & 1 deletion src/triggers.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ function deleteAllTriggers() {
}

function createTriggers() {
const minutes = 10
const minutes = config.updateCellMinutes
ScriptApp.newTrigger('updateRunsConfigC2Cell').timeBased().everyMinutes(minutes).create()
}
6 changes: 5 additions & 1 deletion test/config.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
const { config } = require('../src/config')

test('config has placeholder values', () => {
test('config.workflow_read_token has placeholder value', () => {
expect(config.workflow_read_token).toBe('WORKFLOW_READ_TOKEN - DO NOT SPECIFY - POPULATED AUTOMATICALLY')
})

test('config.updateCellMinutes is defined', () => {
expect(config.updateCellMinutes).toBeDefined()
})

0 comments on commit 043a1f4

Please sign in to comment.