diff --git a/test/unit/parser.test.js b/test/unit/parser.test.js index 786df04ce4..74446d83d7 100644 --- a/test/unit/parser.test.js +++ b/test/unit/parser.test.js @@ -183,6 +183,9 @@ test('includeFile replaces with error with error { + expect(e.message).toEqual(expectedErrorMessage); + }, + }); const result = await markbinder.includeFile(indexPath, { baseUrlMap, rootPath: ROOT_PATH, @@ -201,8 +208,7 @@ test('includeFile replaces with error No such segment 'doesNotExist' in file: ${includePath}`, - `Missing reference in ${indexPath}`, + `
${expectedErrorMessage}
`, '', ].join('\n');