fix(tools): Correct broken test
This commit is contained in:
committed by
mrugesh
parent
924f995af3
commit
f809100406
@ -45,7 +45,7 @@ describe('markdown linter', () => {
|
|||||||
function callback() {
|
function callback() {
|
||||||
const expected =
|
const expected =
|
||||||
// eslint-disable-next-line max-len
|
// eslint-disable-next-line max-len
|
||||||
'fixtures/badYML.md: 19: yaml-linter YAML code blocks must be valid [bad indentation of a mapping entry at line 3, column 17:\n testString: testString\n ^] [Context: "```yml"]';
|
'badYML.md: 19: yaml-linter YAML code blocks should be valid [bad indentation of a mapping entry at line 3, column 17:\n testString: testString\n ^] [Context: "```yml"]';
|
||||||
expect(console.log.mock.calls.length).toBe(1);
|
expect(console.log.mock.calls.length).toBe(1);
|
||||||
expect(console.log.mock.calls[0][0]).toEqual(
|
expect(console.log.mock.calls[0][0]).toEqual(
|
||||||
expect.stringContaining(expected)
|
expect.stringContaining(expected)
|
||||||
|
Reference in New Issue
Block a user