File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1
1
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
3
4
}
4
5
5
6
module . exports = { config }
Original file line number Diff line number Diff line change @@ -8,6 +8,6 @@ function deleteAllTriggers() {
8
8
}
9
9
10
10
function createTriggers ( ) {
11
- const minutes = 10
11
+ const minutes = config . updateCellMinutes
12
12
ScriptApp . newTrigger ( 'updateRunsConfigC2Cell' ) . timeBased ( ) . everyMinutes ( minutes ) . create ( )
13
13
}
Original file line number Diff line number Diff line change 1
1
const { config } = require ( '../src/config' )
2
2
3
- test ( 'config has placeholder values ' , ( ) => {
3
+ test ( 'config.workflow_read_token has placeholder value ' , ( ) => {
4
4
expect ( config . workflow_read_token ) . toBe ( 'WORKFLOW_READ_TOKEN - DO NOT SPECIFY - POPULATED AUTOMATICALLY' )
5
5
} )
6
+
7
+ test ( 'config.updateCellMinutes is defined' , ( ) => {
8
+ expect ( config . updateCellMinutes ) . toBeDefined ( )
9
+ } )
You can’t perform that action at this time.
0 commit comments