Skip to content

Instantly share code, notes, and snippets.

View mystere10's full-sized avatar

Nkunzi Innocent mystere10

View GitHub Profile
@mystere10
mystere10 / commentTest.js
Last active March 13, 2019 16:40
Comment for test
import chai from 'chai';
import chaiHttp from 'chai-http';
import server from '../index.js';
chai.should();
chai.use(chaiHttp);
let clinentToken;
describe('Tests for comments', () => {
it('should login ', (done) => {
@mystere10
mystere10 / comment.js
Created March 13, 2019 13:42
Testing comment endpoint
import chai from 'chai';
import chaiHttp from 'chai-http';
const should = chai.should();
chai.use(chaiHttp);
let clinentToken;
describe('Comment test', () => {
clinentToken = res.body.token;
it('should created a comment', (done) => {