Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Add basic test with mocha, chai #75

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix nits
  • Loading branch information
eveninglily committed May 28, 2019
commit f8bce20318a115f2f70ffda93e0f80ac9f6e65c3
12 changes: 6 additions & 6 deletions app/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ process.env.NODE_ENV = 'test';

const User = require('../server/models/User');

let chai = require('chai');
let chaiHttp = require('chai-http');
let server = require('../app');
let should = chai.should();
let expect = chai.expect;
const chai = require('chai');
const chaiHttp = require('chai-http');
const server = require('../app');
const should = chai.should();
const expect = chai.expect;

chai.use(chaiHttp);

Expand All @@ -18,7 +18,7 @@ let register_details = {


/**
* Test the following in on scoop:
* Test the following in one swoop:
* - Create an account, login with details, and check if token comes
*/

Expand Down
2 changes: 0 additions & 2 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ services:
volumes:
- ./app:/quill/
- /quill/node_modules
- /quill/client/build
- /quill/client/plugins
ports:
- 3001:3001
command: npx mocha --exit