@polesye Instead of putting all this HTML markup here, why not put it in a separate html file in the fixtures directory and load it with 'read' function of jasmine-jquery?