diff --git a/__tests__/functions/databases/postgresql/create.js b/__tests__/functions/databases/postgresql/create.js index 3257f92..57ed641 100644 --- a/__tests__/functions/databases/postgresql/create.js +++ b/__tests__/functions/databases/postgresql/create.js @@ -1,15 +1,15 @@ -const client = require('../../../../index')(process.env.SID, process.env.AUTH, { - isPostgres: true, - appName: 'testApp', - connectionURI: 'postgres://postgres:yellowjacket@localhost/twoauthtests', -}); +// const client = require('../../../../index')(process.env.SID, process.env.AUTH, { +// isPostgres: true, +// appName: 'testApp', +// connectionURI: 'postgres://postgres:yellowjacket@localhost/twoauthtest', +// }); -// client.create("ian", "+17604207520"); +// // client.create("ian", "+17604207520"); -client - .create('ian', '+12016750593') - .then(res => console.log(res)) - .catch(err => console.log(err)); -// describe("Tests for Postgres Send", () => { +// client +// .create('ian', '+12016750593') +// .then(res => console.log(res)) +// .catch(err => console.log(err)); +// // describe("Tests for Postgres Send", () => { -// }); +// // }); diff --git a/index.js b/index.js index 7fd8a11..9a1a94a 100644 --- a/index.js +++ b/index.js @@ -71,6 +71,7 @@ class Client { // connect the database and assign a reference to it to our client object const pgPool = generatePool(options.connectionURI); let tableCreated = false; + console.log(pgPool); this.pgConnect = function() { return new Promise((resolve, reject) => { // connection using created pool diff --git a/tests/create.js b/tests/create.js deleted file mode 100644 index a2edf16..0000000 --- a/tests/create.js +++ /dev/null @@ -1,12 +0,0 @@ -const client = require("../index")(process.env.SID, process.env.AUTH, { - isPostgres: true, - connectionURI: "postgres://student:ilovetesting@localhost/twoauthtests" -}); - -client.create("ian", "+17604207520"); - -// console.log("client is", Client); - -// Client.create("ian", "17604207520") -// .then(user => console.log(user)) -// .catch(err => console.log(err));