美文网首页
Unit test: Mocha

Unit test: Mocha

作者: MattZo | 来源:发表于2017-10-16 18:10 被阅读0次

Personal use.

Best format

const assert = require('chai').assert

/******************** To be tested *******************/
const randomMethod = require('../src/randomMethod')

/******************** Tests *******************/
const testRandomMethod = () => describe('# Network connection', () => {
    it('should print info', () => {
        // test content
    })
})

/******************** Summary *******************/
describe('>>> src/randomMethod.js tests', () => {
    testRandomMethod()
})

相关文章

网友评论

      本文标题:Unit test: Mocha

      本文链接:https://www.haomeiwen.com/subject/hulluxtx.html