dimanche 3 juillet 2016

Mocha Enzyme - how to check if element created by ajax exist

My select component is like below

class Select extends React.component(){
    render(){
        return(
            <select>
                some options return by ajax appended in here
            </select>
        )
    }
}

How to check if select have some option in it after it has been updated by other ajax function

My test tools consist of mocha, enzyme, chai and sinon

Aucun commentaire:

Enregistrer un commentaire