Skip to content

Commit

Permalink
test: update test
Browse files Browse the repository at this point in the history
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
  • Loading branch information
aaqilniz committed Oct 20, 2024
1 parent 9f22056 commit e893e7e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/datasource.js
Original file line number Diff line number Diff line change
Expand Up @@ -1713,7 +1713,6 @@ DataSource.prototype.discoverSchemas = function(tableName, options, cb) {
schema: columns[0].owner,
table: tableName,
};

columns.forEach(function(item) {
const propName = nameMapper('column', item.columnName);
const propertyDetails = {
Expand Down
4 changes: 4 additions & 0 deletions test/discovery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe('Memory connector with mocked discovery', function() {
owner: 'STRONGLOOP',
tableName: 'INVENTORY',
columnName: 'PRODUCT_ID',
indexType: 'BTREE',
dataType: 'varchar',
dataLength: 20,
dataPrecision: null,
Expand Down Expand Up @@ -281,6 +282,9 @@ describe('Memory connector with mocked discovery', function() {
scale: null,
type: undefined,
generated: true,
index: {
unique: true,
},
},
total: {
length: null,
Expand Down

0 comments on commit e893e7e

Please sign in to comment.