Skip to content

Commit

Permalink
chore: altera teste para findFilesBy
Browse files Browse the repository at this point in the history
  • Loading branch information
Euclécio Josias Rodrigues committed Aug 12, 2021
1 parent 16782b4 commit 588a28d
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 2,400 deletions.
11 changes: 4 additions & 7 deletions __tests__/findFilesBy.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ describe('Find files in directory', () => {
expect(givenResult).toEqual(expectedResult);
});

test('When one file is found, but it is listed in the .stylelintignore', () => {
const startPath = `${rootDirectory}/__tests__/fixtures/projects/style-lint-ignore`;
const givenResult = findFilesBy(startPath, 'ignore.css');
const expectedResult = [
`${startPath}/not_ignore.css`,
`${startPath}/src/not_ignore.css`,
];
test('Ignore .github files', () => {
const startPath = `${rootDirectory}/__tests__/fixtures/projects/front-end`;
const givenResult = findFilesBy(startPath, 'main.css');
const expectedResult = [`${startPath}/main.css`];

expect(givenResult).toEqual(expectedResult);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
width: 90px;
height: 100px;
nokey: 5px;
color: #ye;
}

a {
font-family: serif, serif;
width: 100pixels;
}

This file was deleted.

19 changes: 0 additions & 19 deletions __tests__/fixtures/projects/style-lint-ignore/.stylelintrc.json

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions __tests__/fixtures/projects/style-lint-ignore/ignore.css

This file was deleted.

Loading

0 comments on commit 588a28d

Please sign in to comment.