Skip to content

Commit

Permalink
fix(tests): add more node:path sep in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Apr 27, 2022
1 parent 58ca9a0 commit c68c25b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/Unit/FolderTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ describe('\n FolderTest', () => {

const folder = new Folder(path)

const files = folder.getFilesByPattern('**/*.txt')
const folders = folder.getFoldersByPattern('**/*')
const files = folder.getFilesByPattern(`**${sep}*.txt`)
const folders = folder.getFoldersByPattern(`**${sep}*`)

expect(files.length).toBe(1)
expect(folders.length).toBe(1)
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/PathTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ describe('\n PathTest', () => {
expect(Path.routes()).toBe(mainPath.concat(sep, 'routes'))
expect(Path.storage()).toBe(mainPath.concat(sep, 'storage'))
expect(Path.tests()).toBe(mainPath.concat(sep, 'tests'))
expect(Path.vmTmp().startsWith(sep)).toBeTruthy()
expect(Path.vmHome().startsWith(sep)).toBeTruthy()
expect(Path.vmTmp()).toBeTruthy()
expect(Path.vmHome()).toBeTruthy()
})

it('should get the sub paths of app main path', () => {
Expand Down

0 comments on commit c68c25b

Please sign in to comment.