Skip to content

Instantly share code, notes, and snippets.

View islahh's full-sized avatar

Islah Mohammad Musleh islahh

  • Forest Interactive
  • Kuala Lumpur Malaysia
  • 12:51 (UTC -12:00)
View GitHub Profile
# How to find my DB version and other destails, run the following sql
SHOW VARIABLES LIKE "%version%";
@bvanderlaan
bvanderlaan / mochaInCoderPad.md
Created September 6, 2018 00:25
How to run Mocha in CoderPad

When using CoderPad to write code in the browser, say your on the go and just need to write some code, and that code happens to be JavaScript and you want to run a Mocha test here is what you need to do:

'use strict';

const { expect } = require('chai');
const Mocha = require('mocha');
const mocha = new Mocha({ui: 'bdd'});

// CODE ///////////////