Skip to content

Instantly share code, notes, and snippets.

@DylanCh
Last active July 12, 2020 18:56
Show Gist options
  • Save DylanCh/26e2d0511a05fe5a9aeca0d656fc109a to your computer and use it in GitHub Desktop.
Save DylanCh/26e2d0511a05fe5a9aeca0d656fc109a to your computer and use it in GitHub Desktop.
mocha
'user strict';
const expect = chai.expect,
assert = chai.assert;
mocha.setup('bdd');
describe('libraries',function(){
it('should have jQuery',function(){
expect($).to.not.be.null;
expect($).to.not.equal(undefined);
assert(typeof($), 'function');
});
it('should have axios',function(){
expect(axios).to.not.be.null;
expect(axios).to.not.equal(undefined);
assert(typeof(axios), 'function');
});
});
mocha.run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment