Skip to content

Commit 043a1f4

Browse files
committed
config.updateCellMinutes
1 parent 85b399a commit 043a1f4

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

src/config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const config = {
2-
'workflow_read_token': 'WORKFLOW_READ_TOKEN - DO NOT SPECIFY - POPULATED AUTOMATICALLY'
2+
'workflow_read_token': 'WORKFLOW_READ_TOKEN - DO NOT SPECIFY - POPULATED AUTOMATICALLY',
3+
'updateCellMinutes': 10
34
}
45

56
module.exports = { config }

src/triggers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ function deleteAllTriggers() {
88
}
99

1010
function createTriggers() {
11-
const minutes = 10
11+
const minutes = config.updateCellMinutes
1212
ScriptApp.newTrigger('updateRunsConfigC2Cell').timeBased().everyMinutes(minutes).create()
1313
}

test/config.test.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
const { config } = require('../src/config')
22

3-
test('config has placeholder values', () => {
3+
test('config.workflow_read_token has placeholder value', () => {
44
expect(config.workflow_read_token).toBe('WORKFLOW_READ_TOKEN - DO NOT SPECIFY - POPULATED AUTOMATICALLY')
55
})
6+
7+
test('config.updateCellMinutes is defined', () => {
8+
expect(config.updateCellMinutes).toBeDefined()
9+
})

0 commit comments

Comments
 (0)