Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
philippfromme committed Jan 19, 2024
1 parent 810f1bf commit 2cc1147
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/features/popup-menu/PopupMenuComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default function PopupMenuComponent(props) {
/>
</div>
${ entries.length === 0 && html`
<div class="djs-popup-no-results">${ noSearchResultsCallback ? noSearchResultsCallback(value) : 'No matching entries found.' }</div>
<div class="djs-popup-no-results">'No matching entries found.'</div>
` }
` }
</${PopupMenuWrapper}>
Expand Down
22 changes: 11 additions & 11 deletions test/spec/features/popup-menu/PopupMenuSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1298,21 +1298,21 @@ describe('features/popup-menu', function() {
});


it('should render custom entry if no search results', inject(async function(popupMenu) {
// it('should render custom entry if no search results', inject(async function(popupMenu) {

// given
popupMenu.registerProvider('test-menu', testMenuProvider);
popupMenu.open({}, 'test-menu', { x: 100, y: 100 }, { search: true });
// // given
// popupMenu.registerProvider('test-menu', testMenuProvider);
// popupMenu.open({}, 'test-menu', { x: 100, y: 100 }, { search: true });

// when
await triggerSearch('foobar');
// // when
// await triggerSearch('foobar');

// then
var node = queryPopup('#no-search-results-foobar');
// // then
// var node = queryPopup('#no-search-results-foobar');

expect(node).to.exist;
expect(node.textContent).to.eql('foobar');
}));
// expect(node).to.exist;
// expect(node.textContent).to.eql('foobar');
// }));

});

Expand Down

0 comments on commit 2cc1147

Please sign in to comment.