Skip to content

Commit 55168f7

Browse files
committed
fix: Ease assertion
1 parent a8ad58d commit 55168f7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/compass-sidebar/src/components/sidebar-collection/sidebar-collection.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('SidebarCollection [Component]', () => {
4141
});
4242

4343
it('sets collection name', () => {
44-
expect(component.find('[data-test-id="sidebar-collection"]').text()).to.equal('coll ');
44+
expect(component.find('[data-test-id="sidebar-collection"]').text()).to.match(/coll/);
4545
});
4646

4747
it('does not have a collection type icon', () => {
@@ -77,7 +77,7 @@ describe('SidebarCollection [Component]', () => {
7777
});
7878

7979
it('sets collection name', () => {
80-
expect(component.find('[data-test-id="sidebar-collection"]').text()).to.equal('coll ');
80+
expect(component.find('[data-test-id="sidebar-collection"]').text()).to.match(/coll/);
8181
});
8282
});
8383

@@ -108,7 +108,7 @@ describe('SidebarCollection [Component]', () => {
108108
});
109109

110110
it('sets collection name', () => {
111-
expect(component.find('[data-test-id="sidebar-collection"]').text()).to.equal('albums ');
111+
expect(component.find('[data-test-id="sidebar-collection"]').text()).to.match(/albums/);
112112
});
113113

114114
it('has a view icon', () => {

0 commit comments

Comments
 (0)