Skip to content

Conversation

@PoslinskiNet
Copy link
Collaborator

@PoslinskiNet PoslinskiNet commented Sep 11, 2018

Tasks:

  • Jest test setup
  • Mock ./database via jest
  • Improve Table spec
  • Setup travis

@PoslinskiNet PoslinskiNet added the enhancement New feature or request label Sep 11, 2018
describe('#index', () => {
test('returns all tables', async () => {
const firstTable = await Table.create({
"name": "First table",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"name" -> name ✂️

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thame same for other keys

package.json Outdated
"main": "index.js",
"scripts": {
"test": "jest",
"test": "MONGODB_URI=mongodb://localhost:27017/lemme-api jest",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this env? I saw that this uri is hardcoded inside tests/globalConfig.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants