Skip to content

Commit

Permalink
Tidy up a few lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikhm committed Aug 11, 2023
1 parent ad16c8b commit 0345e3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/converters/logseq/logseqUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import { LogseqBlock } from './types';
const TODO_FLAG = 'TODO';
const DONE_FLAG = 'DONE';

// some custom variations of TODO and DONE
const TODO_FLAG_ALT = 'TODO';
const DONE_FLAG_ALT = 'DONE';

export function isTodo(name: string) {
return name.substring(0, TODO_FLAG.length) === TODO_FLAG;
}
Expand Down
3 changes: 1 addition & 2 deletions src/converters/logseq/tests/logseq.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ test('Block references', () => {
});

test('Codeblocks', () => {
const [file, f] = importLogseqFile('codeblocks.json');
// console.log(JSON.stringify(file, null, 2));
const [, f] = importLogseqFile('codeblocks.json');

expect(f('block-with-type')?.name).toEqual('\nconst tana = "cool";\n');
expect(f('block-with-type')?.type).toEqual('codeblock');
Expand Down

0 comments on commit 0345e3c

Please sign in to comment.