diff --git a/__tests__/ExpensiMark-HTML-test.js b/__tests__/ExpensiMark-HTML-test.js
index 3eef3952..0286b4ae 100644
--- a/__tests__/ExpensiMark-HTML-test.js
+++ b/__tests__/ExpensiMark-HTML-test.js
@@ -1978,6 +1978,34 @@ describe('when should keep raw input flag is enabled', () => {
expect(parser.replace(testString, {shouldKeepRawInput: true})).toBe(resultString);
});
});
+
+ describe('inline code blocks', () => {
+ test('empty content', () => {
+ const testString = '``';
+ const resultString = '``';
+ expect(parser.replace(testString, {shouldKeepRawInput: true})).toBe(resultString);
+ });
+ test('single whitespace as a content', () => {
+ const testString = '` `';
+ const resultString = '
';
+ expect(parser.replace(testString, {shouldKeepRawInput: true})).toBe(resultString);
+ });
+ test('multiple whitespaces as a content', () => {
+ const testString = '` `';
+ const resultString = '
';
+ expect(parser.replace(testString, {shouldKeepRawInput: true})).toBe(resultString);
+ });
+ test('text content', () => {
+ const testString = 'hello `world`';
+ const resultString = 'hello world
';
+ expect(parser.replace(testString, {shouldKeepRawInput: true})).toBe(resultString);
+ });
+ test('text and whitespaces as a content', () => {
+ const testString = '` hello world `';
+ const resultString = ' hello world
';
+ expect(parser.replace(testString, {shouldKeepRawInput: true})).toBe(resultString);
+ });
+ });
});
test('Test code fence within inline code', () => {