Skip to content

Commit c393946

Browse files
Jonathan LuuJonathan Luu
authored andcommitted
passing integration tests excluding createtableas
1 parent 56a54e1 commit c393946

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

__tests__/integrationtests.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,24 @@ describe('--Integration Tests--', () => {
107107

108108
// })
109109
// it('materialized table view updates with source stream', async () => {
110-
// await client.insertStream('TESTJESTSTREAM', [{"NAME":"firstTester", "AGE":25, "LOCATION": "Seattle", "WEIGHT": 130}, {"NAME":"secondTester", "AGE":30, "LOCATION": "Cali", "WEIGHT": 150}, {"NAME":"firstTester", "AGE":28, "LOCATION": "Seattle", "WEIGHT": 145}, {"NAME":"thirdTester", "AGE":19, "LOCATION": "Colorado", "WEIGHT": 110}])
111-
// const matTable = await client.pull('SELECT * FROM TABLEOFSTREAM;');
112-
// // console.log('table list', matTable)
113110
// let rowCheck = false;
114-
// for (let i = 1; i < matTable.length; i++){
115-
// if (matTable[i][0] === "firstTester" && matTable[i][1] === "25" && matTable[i][2] === 130){
116-
// rowCheck = true;
117-
// break;
111+
// // push query for the table
112+
// await client.push('SELECT * FROM TABLEOFSTREAM EMIT CHANGES LIMIT 1;', async (data) => {
113+
// if (Array.isArray(JSON.parse(data))){
114+
// console.log(JSON.parse(data))
115+
// if (JSON.parse(data)[0] === "firstTester" && JSON.parse(data)[1] === 25 && JSON.parse(data)[2] === "Seattle" && JSON.parse(data)[3] === 130){
116+
// rowCheck = true;
117+
// }
118+
// expect
118119
// }
119-
// }
120+
// })
121+
// await client.insertStream('TESTJESTSTREAM', [{"NAME":"firstTester", "AGE":25, "LOCATION": "Seattle", "WEIGHT": 130}])
122+
// const matTable = await client.pull('SELECT * FROM TABLEOFSTREAM;');
123+
// // console.log('table list', matTable)
124+
120125
// expect(rowCheck).toEqual(true);
121126
// })
122127
// })
123-
124128

125129
describe('--Health Tests--', () => {
126130
beforeAll((done) => {

0 commit comments

Comments
 (0)