The 'describe' keyword in javascript

后端 未结 3 1765
情歌与酒
情歌与酒 2021-01-30 10:08

So I am a newbie in javascript and i had been going through some one else\'s code and I found this..

describe(\'deviceready\', function() {
    it(\'should rep         


        
3条回答
  •  渐次进展
    2021-01-30 10:59

    "A test suite begins with a call to the global Jasmine function describe with two parameters: a string and a function. The string is a name or title for a spec suite - usually what is being tested. The function is a block of code that implements the suite."

    source: http://jasmine.github.io/2.0/introduction.html

提交回复
热议问题