Match text with toMatchInterpolatedText

parent 18d7f54f
...@@ -313,7 +313,7 @@ describe('Ref selector component', () => { ...@@ -313,7 +313,7 @@ describe('Ref selector component', () => {
findBranchesSection() findBranchesSection()
.find('[data-testid="section-header"]') .find('[data-testid="section-header"]')
.text(), .text(),
).toBe('Branches 123'); ).toMatchInterpolatedText('Branches 123');
}); });
it("does not render an error message in the branches section's body", () => { it("does not render an error message in the branches section's body", () => {
...@@ -392,7 +392,7 @@ describe('Ref selector component', () => { ...@@ -392,7 +392,7 @@ describe('Ref selector component', () => {
findTagsSection() findTagsSection()
.find('[data-testid="section-header"]') .find('[data-testid="section-header"]')
.text(), .text(),
).toBe('Tags 456'); ).toMatchInterpolatedText('Tags 456');
}); });
it("does not render an error message in the tags section's body", () => { it("does not render an error message in the tags section's body", () => {
...@@ -460,7 +460,7 @@ describe('Ref selector component', () => { ...@@ -460,7 +460,7 @@ describe('Ref selector component', () => {
findCommitsSection() findCommitsSection()
.find('[data-testid="section-header"]') .find('[data-testid="section-header"]')
.text(), .text(),
).toBe('Commits 1'); ).toMatchInterpolatedText('Commits 1');
}); });
it("does not render an error message in the comits section's body", () => { it("does not render an error message in the comits section's body", () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment