Skip to content

Instantly share code, notes, and snippets.

View andrewinsoul's full-sized avatar

Okoye Andrew andrewinsoul

  • Lagos
View GitHub Profile
@andrewinsoul
andrewinsoul / gist:f52c33b27a82348ef2a163398b88ef48
Last active November 23, 2018 07:55
This is a test that tests the endpoint for creating a new story. Edge cases tested include: ensuring a user is authenticated and ensuring the proper data-type for the story created.
import chai from 'chai';
import chaiHttp from 'chai-http';
import app from '../../app';
chai.use(chaiHttp);
const { expect } = chai;
describe('test for the endpoint that creates a new entry', () => {
it('should return status code 201 with object of entry just added when user access POST /api/v1/new-story with payload that is propely formatted', (done) => {
chai.request(app)
@andrewinsoul
andrewinsoul / resultant_calculator_gui.pyw
Created September 10, 2017 23:13
my little calculator project on tkinter
the code to this tkinter software is found in my github account via the link: https://github.com/andrewinsoul/Physics-Code/blob/master/resultant_calculator_gui.pyw