From 1ffcc44b0b6f3e7a6fdbfbce51037c31317a83fd Mon Sep 17 00:00:00 2001 From: Dominique Emond Date: Thu, 11 Jul 2019 14:49:51 -0400 Subject: [PATCH 1/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 149c446..5ff26a8 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [IBM® DashDB®]() is the database of choice for robust, enterprise-wide solutions handling high-volume workloads. It is optimized to deliver industry-leading performance while lowering costs. The `loopback-connector-dashdb` -module is the LoopBack connector for dashDB. +module is the LoopBack connector for dashDB. The LoopBack DashDB connector supports: From b10133c0b580af5e49e34bd2edf1d56035f54625 Mon Sep 17 00:00:00 2001 From: Dominique Emond Date: Fri, 12 Jul 2019 10:14:08 -0400 Subject: [PATCH 2/4] chore: second fake change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5ff26a8..c87a5e5 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ It is optimized to deliver industry-leading performance while lowering costs. The `loopback-connector-dashdb` module is the LoopBack connector for dashDB. -The LoopBack DashDB connector supports: +The LoopBack DashDB connector supports (fake change): - All [CRUD operations](http://loopback.io/doc/en/lb3/Creating-updating-and-deleting-data.html). - [Queries](http://loopback.io/doc/en/lb3/Querying-data.html) with fields, limit, order, skip and where filters. From 9388fbd4949b7518d212601bff037dd1cc95fc12 Mon Sep 17 00:00:00 2001 From: Dominique Emond Date: Tue, 16 Jul 2019 14:52:01 -0400 Subject: [PATCH 3/4] chore: make another fake change --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c87a5e5..3095655 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ It is optimized to deliver industry-leading performance while lowering costs. The `loopback-connector-dashdb` module is the LoopBack connector for dashDB. -The LoopBack DashDB connector supports (fake change): +The LoopBack DashDB connector supports (fake change #2): - All [CRUD operations](http://loopback.io/doc/en/lb3/Creating-updating-and-deleting-data.html). - [Queries](http://loopback.io/doc/en/lb3/Querying-data.html) with fields, limit, order, skip and where filters. From c62907a108f8aa00953398d74edfb867d19ec7f2 Mon Sep 17 00:00:00 2001 From: Dominique Emond Date: Wed, 17 Jul 2019 09:24:58 -0400 Subject: [PATCH 4/4] chore: fix lint errors --- README.md | 4 ++-- package.json | 1 + test/discovery.test.js | 18 ++++++++++++------ 3 files changed, 15 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 3095655..8074651 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ [IBM® DashDB®]() is the database of choice for robust, enterprise-wide solutions handling high-volume workloads. It is optimized to deliver industry-leading performance while lowering costs. The `loopback-connector-dashdb` -module is the LoopBack connector for dashDB. +module is the LoopBack connector for dashDB. -The LoopBack DashDB connector supports (fake change #2): +The LoopBack DashDB connector supports: - All [CRUD operations](http://loopback.io/doc/en/lb3/Creating-updating-and-deleting-data.html). - [Queries](http://loopback.io/doc/en/lb3/Querying-data.html) with fields, limit, order, skip and where filters. diff --git a/package.json b/package.json index 6bc3de4..a49b12b 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "main": "index.js", "scripts": { "lint": "eslint .", + "lint:fix": "eslint --fix .", "pretest": "node pretest.js", "test": "mocha --timeout 20000 --require test/init.js", "posttest": "npm run lint" diff --git a/test/discovery.test.js b/test/discovery.test.js index a5409f4..7ce5f6e 100644 --- a/test/discovery.test.js +++ b/test/discovery.test.js @@ -258,17 +258,20 @@ describe('Discover LDL schema from a table', function() { assert(schema.name === 'Inventory'); assert( - schema.options.dashdb.schema.replace(/\s/g, '') === config.schema); + schema.options.dashdb.schema.replace(/\s/g, '') === config.schema + ); assert(schema.options.dashdb.table === 'INVENTORY'); assert(schema.properties.productId); assert(schema.properties.productId.required); assert(schema.properties.productId.type === 'String'); assert( - schema.properties.productId.dashdb.columnName === 'PRODUCT_ID'); + schema.properties.productId.dashdb.columnName === 'PRODUCT_ID' + ); assert(schema.properties.locationId); assert(schema.properties.locationId.type === 'String'); assert( - schema.properties.locationId.dashdb.columnName === 'LOCATION_ID'); + schema.properties.locationId.dashdb.columnName === 'LOCATION_ID' + ); assert(schema.properties.available); assert(schema.properties.available.required === false); assert(schema.properties.available.type === 'Number'); @@ -301,16 +304,19 @@ describe('Discover and build models', function() { 'Inventory model should be discovered and built'); var schema = models.Inventory.definition; assert( - schema.settings.dashdb.schema.replace(/\s/g, '') === config.schema); + schema.settings.dashdb.schema.replace(/\s/g, '') === config.schema + ); assert(schema.settings.dashdb.table === 'INVENTORY'); assert(schema.properties.productId); assert(schema.properties.productId.type === String); assert( - schema.properties.productId.dashdb.columnName === 'PRODUCT_ID'); + schema.properties.productId.dashdb.columnName === 'PRODUCT_ID' + ); assert(schema.properties.locationId); assert(schema.properties.locationId.type === String); assert( - schema.properties.locationId.dashdb.columnName === 'LOCATION_ID'); + schema.properties.locationId.dashdb.columnName === 'LOCATION_ID' + ); assert(schema.properties.available); assert(schema.properties.available.type === Number); assert(schema.properties.total);