Skip to content

Commit

Permalink
fix: windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TOsmanov committed Nov 13, 2024
1 parent c065bf7 commit c94fc69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const commandsGen = function (src = defaultSrc, configPath = '', project = '',
const fix = (isFix === true) ? '-fix' : ''
const args = []
let filesArgMdLint = `"${src}/**/*.md"`
let filesArgMdLinkCheck = `${src}/`
let filesArgMdLinkCheck = `${src}`
let existIncludesMap = false
let listOfFiles = []

Expand Down
12 changes: 6 additions & 6 deletions test/linter.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,12 @@ test('create-config --vs-code', async () => {

test('create-config --node-modules', async () => {
const expectedStdout = [
`${cwd}/node_modules/markdownlint-rules-foliant/lib/indented-fence`,
`${cwd}/node_modules/markdownlint-rules-foliant/lib/non-literal-fence-label`,
`${cwd}/node_modules/markdownlint-rules-foliant/lib/fenced-code-in-quote`,
`${cwd}/node_modules/markdownlint-rules-foliant/lib/typograph`,
`${cwd}/node_modules/markdownlint-rules-foliant/lib/validate-internal-links`,
`${cwd}/node_modules/markdownlint-rules-foliant/lib/frontmatter-tags-exist`
path.resolve(cwd, 'node_modules', 'markdownlint-rules-foliant', 'lib', 'indented-fence'),
path.resolve(cwd, 'node_modules', 'markdownlint-rules-foliant', 'lib', 'non-literal-fence-label'),
path.resolve(cwd, 'node_modules', 'markdownlint-rules-foliant', 'lib', 'fenced-code-in-quote'),
path.resolve(cwd, 'node_modules', 'markdownlint-rules-foliant', 'lib', 'typograph'),
path.resolve(cwd, 'node_modules', 'markdownlint-rules-foliant', 'lib', 'validate-internal-links'),
path.resolve(cwd, 'node_modules', 'markdownlint-rules-foliant', 'lib', 'frontmatter-tags-exist')
]

const result = await cli(['create-config', `--node-modules ${cwd}`], '.')
Expand Down

0 comments on commit c94fc69

Please sign in to comment.