Skip to content

Commit e893e7e

Browse files
committed
test: update test
Signed-off-by: Muhammad Aaqil <[email protected]>
1 parent 9f22056 commit e893e7e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/datasource.js

-1
Original file line numberDiff line numberDiff line change
@@ -1713,7 +1713,6 @@ DataSource.prototype.discoverSchemas = function(tableName, options, cb) {
17131713
schema: columns[0].owner,
17141714
table: tableName,
17151715
};
1716-
17171716
columns.forEach(function(item) {
17181717
const propName = nameMapper('column', item.columnName);
17191718
const propertyDetails = {

test/discovery.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ describe('Memory connector with mocked discovery', function() {
2929
owner: 'STRONGLOOP',
3030
tableName: 'INVENTORY',
3131
columnName: 'PRODUCT_ID',
32+
indexType: 'BTREE',
3233
dataType: 'varchar',
3334
dataLength: 20,
3435
dataPrecision: null,
@@ -281,6 +282,9 @@ describe('Memory connector with mocked discovery', function() {
281282
scale: null,
282283
type: undefined,
283284
generated: true,
285+
index: {
286+
unique: true,
287+
},
284288
},
285289
total: {
286290
length: null,

0 commit comments

Comments
 (0)