UNPKG

e2e_training_wheels

Version:

A set of helpers to sipmlify acceptance (e2e) testing using Chai, Mocha and Pupeteer. Can also be used for Unit testing. ;-)

18 lines (15 loc) 424 B
require('../spec.helper') describe('Your test case description', () => { // Setup let array beforeEach(() => { // assign values to your variables array = new Array(2, 3) }); it('add a descriptive test title', () => { // Execute code if needed const sum = array[0] + array[1] // add an assertion using the `expect` keyword expect(sum).to.eql(5) }) })