Answers for "jasmine angular contains expression"

1

jasmine angular contains expression

//Use .toContain()
const btn = fixture.debugElement.nativeElement.querySelector('#btn-create');
expect(btn.innerHTML).toContain('Create');
Posted by: Guest on August-20-2021

Code answers related to "jasmine angular contains expression"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language