forked from andrewroberts/TrelloApp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Tests.gs
42 lines (28 loc) · 815 Bytes
/
Tests.gs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// 34567890123456789012345678901234567890123456789012345678901234567890123456789
// JSHint (this file) - TODO
/**
* Tests.gs
* ========
*
* Unit test functions
*/
function test_createCard(){
var app = new App()
// Look for 'RTM List 1' in the 'Rose Task Manager' and
// add a new card to it
app.getMyBoards().some(function(board) {
if (board.getName() === 'Rose Task Manager') {
Logger.log('Found RTM board')
app.getBoardLists(board.getId()).some(function(list) {
if (list.getName() === 'List 1') {
Logger.log('Found List 1')
app.createCard({
name: 'test card 4',
idList: list.getId(),
})
Logger.log('Created new card')
}
})
}
})
} // testOpen()