Unit test: Mocha

2017-10-16  本文已影响0人  MattZo

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()
})
上一篇下一篇

猜你喜欢

热点阅读