Skip to content

Commit

Permalink
SNOW-1332640-structured-types-support
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pmotacki committed Sep 11, 2024
1 parent f984cda commit 0fbb24e
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions test/integration/testStructuredType.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ describe('Test Structured types', function () {
complete: function (err, stmt, rows) {
testUtil.checkError(err);
const row = rows[0];
const narmalizedRow = {};
const normalizedRow = {};
Object.keys(row).forEach((key) => {
narmalizedRow[key] = testUtil.normalizeRowObject(row[key]);
normalizedRow[key] = testUtil.normalizeRowObject(row[key]);
});
assert.deepStrictEqual(narmalizedRow.RESULT, expected);
assert.deepStrictEqual(normalizedRow.RESULT, expected);
callback();
}
});
Expand All @@ -93,9 +93,9 @@ describe('Test Structured types', function () {
complete: function (err, stmt, rows) {
testUtil.checkError(err);
const row = rows[0];
const narmalizedRow = {};
const normalizedRow = {};
Object.keys(row).forEach((key) => {
narmalizedRow[key] = testUtil.normalizeRowObject(row[key]);
normalizedRow[key] = testUtil.normalizeRowObject(row[key]);
});
assert.deepStrictEqual(row.RESULT, expected);
callback();
Expand All @@ -121,11 +121,11 @@ describe('Test Structured types', function () {
complete: function (err, stmt, rows) {
testUtil.checkError(err);
const row = rows[0];
const narmalizedRow = {};
const normalizedRow = {};
Object.keys(row).forEach((key) => {
narmalizedRow[key] = testUtil.normalizeRowObject(row[key]);
normalizedRow[key] = testUtil.normalizeRowObject(row[key]);
});
assert.deepStrictEqual(narmalizedRow.RESULT, expected);
assert.deepStrictEqual(normalizedRow.RESULT, expected);
callback();
}
});
Expand Down Expand Up @@ -247,11 +247,11 @@ describe('Test Structured types', function () {
complete: function (err, stmt, rows) {
testUtil.checkError(err);
const row = rows[0];
const narmalizedRow = {};
const normalizedRow = {};
Object.keys(row).forEach((key) => {
narmalizedRow[key] = testUtil.normalizeRowObject(row[key]);
normalizedRow[key] = testUtil.normalizeRowObject(row[key]);
});
assert.deepStrictEqual(narmalizedRow, expected);
assert.deepStrictEqual(normalizedRow, expected);
callback();
}
});
Expand Down Expand Up @@ -320,11 +320,11 @@ describe('Test Structured types', function () {
complete: function (err, stmt, rows) {
testUtil.checkError(err);
const row = rows[0];
const narmalizedRow = {};
const normalizedRow = {};
Object.keys(row).forEach((key) => {
narmalizedRow[key] = testUtil.normalizeRowObject(row[key]);
normalizedRow[key] = testUtil.normalizeRowObject(row[key]);
});
assert.deepStrictEqual(narmalizedRow, expected);
assert.deepStrictEqual(normalizedRow, expected);
callback();
}
});
Expand Down

0 comments on commit 0fbb24e

Please sign in to comment.