Skip to content

Automated test

Nako Sung edited this page Sep 2, 2016 · 5 revisions

const ops = {TestFlags : 0x02000000 | 0x00000001 | 0x00000002}
describe('Javascript_Test1', opts, function () {
    before(function () {
        console.log('before test1')
    })
    after(function () {
        console.log('after test1')
    })
    it('should fail properly',function () {
        throw new Error("1")
    })
    describe('async', function () {
        before(function () {
            console.log('before inner')
        }) 
        it('should handle time out properly', function (done) {
            setTimeout(function () {
                done()
            },500)            
        })
    }) 
}) 
Clone this wiki locally