Skip to content

Commit

Permalink
fix: don't assume heading type is module (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
RedYetiDev authored Nov 16, 2024
1 parent 46665ac commit fb68333
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/test/queries.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ describe('createQueries', () => {
depth: 2,
name: 'Test Heading',
text: 'Test Heading',
type: 'module',
},
depth: 2,
});
Expand Down
2 changes: 1 addition & 1 deletion src/utils/parser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,5 @@ export const parseHeadingIntoMetadata = (heading, depth) => {
}
}

return { text: heading, type: 'module', name: heading, depth };
return { text: heading, name: heading, depth };
};
1 change: 0 additions & 1 deletion src/utils/tests/parser.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ describe('parseYAMLIntoMetadata', () => {
const input = '## test';
const expectedOutput = {
text: '## test',
type: 'module',
name: '## test',
depth: 2,
};
Expand Down

0 comments on commit fb68333

Please sign in to comment.