Testing Our Connection - Ajarlin/MongoDB_notes GitHub Wiki

In the case of

  • Creating records
  • Reading records
  • Updating
  • Deleting

Mocha testing

const assert = require('assert');


//Describe Test
describe('Demo test', function(){
  //Create test
  it('adds two numbers together', function(){
    //if true it passes, else it will fail
    assert(3 + 3 === 6);
  });

});```