How can I get my jasmine tests fixtures to load before the javascript considers the document to be “ready”?

后端 未结 6 2481
星月不相逢
星月不相逢 2021-01-01 21:51

I am fairly certain that the issue is that the jquery bindings set to run on $(document).ready do not have the fixture html available to them. So when my events occur that

6条回答
  •  再見小時候
    2021-01-01 22:16

    Have you tried jasmine-jquery?

    https://github.com/velesin/jasmine-jquery

    From it's github page,

    jasmine-jquery provides two extensions for Jasmine JavaScript Testing Framework:

    a set of custom matchers for jQuery framework an API for handling HTML, CSS, and JSON fixtures in your specs

提交回复
热议问题