Skip to content

Commit 10fcc10

Browse files
committed
tests: fixed tests to work with new test app data structure
1 parent 2d09363 commit 10fcc10

5 files changed

Lines changed: 21 additions & 1 deletion

File tree

tests/API_DoQuery.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const expectedDoQueryFmt = {
2929
qname: '',
3030
table: {
3131
name: '',
32+
desc: '',
3233
original: {
3334
table_id: '',
3435
app_id: '',

tests/API_FindDBByName.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module.exports = function(pass, fail) {
3737
});
3838

3939
return qb.api('API_FindDBByName', {
40-
dbname: 'Node-QuickBase'
40+
dbname: 'Tristian\'s Application'
4141
}).then((results) => {
4242
common.objStrctEqual(results, expected, 'Mismatched API_FindDBByName Data Structure');
4343

tests/API_GetAppDTMInfo.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ const expected = {
4040
lastModifiedTime: 0,
4141
lastRecModTime: 0,
4242
id: ''
43+
}, {
44+
lastModifiedTime: 0,
45+
lastRecModTime: 0,
46+
id: ''
4347
}
4448
]
4549
};

tests/API_GetRoleInfo.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ const expected = {
4646
id: 0,
4747
name: ''
4848
}
49+
}, {
50+
id: 0,
51+
name: '',
52+
access: {
53+
id: 0,
54+
name: ''
55+
}
56+
}, {
57+
id: 0,
58+
name: '',
59+
access: {
60+
id: 0,
61+
name: ''
62+
}
4963
}
5064
]
5165
};

tests/API_GetSchema.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const expectedGetSchema = {
2828
date_format: '',
2929
table: {
3030
name: '',
31+
desc: '',
3132
original: {
3233
table_id: '',
3334
app_id: '',

0 commit comments

Comments
 (0)