Skip to content

Commit

Permalink
did initial test of postgresCreate with actual URI. passed initial te…
Browse files Browse the repository at this point in the history
…sting
  • Loading branch information
Dnaganog committed Jul 8, 2019
1 parent f6f26f8 commit 40ffccb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 24 deletions.
24 changes: 12 additions & 12 deletions __tests__/functions/databases/postgresql/create.js
Original file line number Diff line number Diff line change
@@ -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", () => {

// });
// // });
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 0 additions & 12 deletions tests/create.js

This file was deleted.

0 comments on commit 40ffccb

Please sign in to comment.