Jasmine tests check if html contains text and return boolean April 27, 2023 by Tarik toContain() now can actually be used for substring in string checks: expect(view.$el.html()).toContain('Admin');