Last active
July 12, 2020 18:56
-
-
Save DylanCh/26e2d0511a05fe5a9aeca0d656fc109a to your computer and use it in GitHub Desktop.
mocha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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