Skip to content

Commit

Permalink
Minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
laileni-aws committed Oct 15, 2024
1 parent 483591b commit 6a095ee
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions packages/core/src/test/shared/markdown.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ describe('extractCodeBlockLanguage', () => {
assert.strictEqual(extractCodeBlockLanguage(message), 'typescript')
})

it('should return "plaintext" when the code block is not closed', () => {
const message = 'Incomplete code block:\n```javascript\nconsole.log("Hello");'
assert.strictEqual(extractCodeBlockLanguage(message), 'plaintext')
})

it('should handle empty messages', () => {
assert.strictEqual(extractCodeBlockLanguage(''), 'plaintext')
})
Expand Down

0 comments on commit 6a095ee

Please sign in to comment.