Skip to content

Commit

Permalink
Merge pull request #104 from snyk/chore/cleanup
Browse files Browse the repository at this point in the history
fix: fixed test
  • Loading branch information
Arvi3d authored Sep 7, 2021
2 parents a57ff1b + 006ecbe commit 9583a7b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/files.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ describe('files', () => {
expect(patterns).toEqual(bundleFileIgnores.slice(1));
});

it('should parse .snyk file', async () => {
const patterns = await parseDotSnykExcludes(`${sampleProjectPath}/${DOTSNYK_FILENAME}`);
expect(patterns).toEqual(bundlefileExcludes);
});

it('collect ignore rules', async () => {
const ignoreRules = await collectIgnoreRules([sampleProjectPath]);
expect(ignoreRules).toEqual(bundleFileIgnores);
});

it('should parse .snyk file', async () => {
const patterns = await parseDotSnykExcludes(`${sampleProjectPath}/${DOTSNYK_FILENAME}`);
expect(patterns).toEqual(bundlefileExcludes);
});

it('collect bundle files', async () => {
// TODO: We should introduce some performance test using a big enough repo to avoid flaky results
const collector = collectBundleFiles({
Expand Down

0 comments on commit 9583a7b

Please sign in to comment.