{
+ if (!shouldOpenSheetContextMenu(event.target)) return;
+ event.preventDefault();
+ setMenuOpen(true);
+ }}
+ >
+
+ {menuOpen ?
Sheet menu
: null}
+
+ );
+}
+
+describe('note title dictionary', () => {
+ beforeEach(() => {
+ mockUseSelector.mockReturnValue({ noteTitle: 'Note title' });
+ });
+
+ it('does not open the sheet menu on a misspelled note title', () => {
+ render(