-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Phase 1 - Configure, initialize, connect and disconnect clients #139
base: develop
Are you sure you want to change the base?
Conversation
|
||
test.skip('client connects', async () => { | ||
const dbClient = await client.connect(); | ||
console.log(dbClient); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unexpected console statement no-console
initializeAndSeed, | ||
mockCart, | ||
mockOrder, | ||
mockUser, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'mockUser' is not defined no-undef
disconnect, | ||
initializeAndSeed, | ||
mockCart, | ||
mockOrder, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'mockOrder' is not defined no-undef
module.exports = { | ||
disconnect, | ||
initializeAndSeed, | ||
mockCart, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'mockCart' is not defined no-undef
|
||
// const mockUser = { _id: ObjectId('abcdef78901234abcdef1234'), name: 'John', orders: [{ orderId: '4321fedcbafedcba67890123' }] }; | ||
// const mockCart = { _id: ObjectId('fedcba67890123fedcba4321'), userId: 'abcdef78901234abcdef1234' }; | ||
// const mockOrder = { _id: ObjectId('4321fedcbafedcba67890123'), cartId: 'fedcba67890123fedcba4321' }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 13 exceeds the maximum line length of 100 max-len
let targetClient1; | ||
|
||
// const mockUser = { _id: ObjectId('abcdef78901234abcdef1234'), name: 'John', orders: [{ orderId: '4321fedcbafedcba67890123' }] }; | ||
// const mockCart = { _id: ObjectId('fedcba67890123fedcba4321'), userId: 'abcdef78901234abcdef1234' }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 12 exceeds the maximum line length of 100 max-len
let sourceClient1; | ||
let targetClient1; | ||
|
||
// const mockUser = { _id: ObjectId('abcdef78901234abcdef1234'), name: 'John', orders: [{ orderId: '4321fedcbafedcba67890123' }] }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 11 exceeds the maximum line length of 100 max-len
|
||
const CONFIG = require('../config'); | ||
|
||
const log = logging('Weaver:shared:__tests__'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'log' is assigned a value but never used no-unused-vars
const logging = require('debug'); | ||
const ObjectId = require('bson-objectid'); | ||
|
||
const CONFIG = require('../config'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'CONFIG' is assigned a value but never used no-unused-vars
@@ -0,0 +1,65 @@ | |||
const logging = require('debug'); | |||
const ObjectId = require('bson-objectid'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'ObjectId' is assigned a value but never used no-unused-vars
Phase 1 - Configure, initialize, connect and disconnect clients
[CLI] run
[CLI] clients
Add support for postgres clients
[App] clients