how to unit test DOM manipulation (with jasmine)

前端 未结 2 1455
不思量自难忘°
不思量自难忘° 2020-12-12 22:34

I need to unit test some DOM manipulation functions with jasmine (currently I run my tests in the browser and with Karma)

I was wondering what the best approach wou

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-12 22:54

    I was looking for something for myself and finally I made a little library with 19 custom matchers. Maybe you'll find it helpful. https://github.com/devrafalko/jasmine-DOM-custom-matchers

提交回复
热议问题