mirror of
https://github.com/mts7/obsidian-word-frequency.git
synced 2026-07-22 05:43:07 +00:00
use eye-off instead of search-x
This commit is contained in:
parent
f17a50f8f7
commit
4e9acea78a
2 changed files with 3 additions and 3 deletions
|
|
@ -53,7 +53,7 @@ export class WordFrequencyDisplay {
|
|||
cls: ELEMENT_CLASSES.containerButton,
|
||||
});
|
||||
const button = buttonContainer.createEl('button');
|
||||
setIcon(button, 'search-x');
|
||||
setIcon(button, 'eye-off');
|
||||
this.plugin.registerDomEvent(button, 'click', () => {
|
||||
this.saveWordToBlacklist(word);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ describe('WordFrequencyDisplay', () => {
|
|||
'click',
|
||||
expect.any(Function)
|
||||
);
|
||||
expect(setIcon).toHaveBeenCalledWith(buttonElement, 'search-x');
|
||||
expect(setIcon).toHaveBeenCalledWith(buttonElement, 'eye-off');
|
||||
});
|
||||
|
||||
it.todo('should verify the button click event handles the word');
|
||||
|
|
@ -160,7 +160,7 @@ describe('WordFrequencyDisplay', () => {
|
|||
expect(contentContainer.createEl).toHaveBeenCalledWith('div', {
|
||||
cls: ELEMENT_CLASSES.containerRow,
|
||||
});
|
||||
expect(setIcon).toHaveBeenCalledWith(buttonElement, 'search-x');
|
||||
expect(setIcon).toHaveBeenCalledWith(buttonElement, 'eye-off');
|
||||
expect(mockPlugin.registerDomEvent).toHaveBeenCalledWith(
|
||||
buttonElement,
|
||||
'click',
|
||||
|
|
|
|||
Loading…
Reference in a new issue