Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Create a broken-links dir for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicKramer committed Dec 18, 2017
1 parent 0492479 commit 561435c
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 17 deletions.
1 change: 0 additions & 1 deletion test/fixtures/project-cannot-read-files/cannot-read-1.js

This file was deleted.

1 change: 0 additions & 1 deletion test/fixtures/project-cannot-read-files/cannot-read-2.js

This file was deleted.

1 change: 0 additions & 1 deletion test/fixtures/project-cannot-read-files/cannot-write-1.js

This file was deleted.

12 changes: 0 additions & 12 deletions test/fixtures/project-cannot-read-files/package.json

This file was deleted.

4 changes: 2 additions & 2 deletions test/test-scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ describe('scanner', () => {
});

it('should ignore broken links', function(done) {
if (process.platform.indexOf('win') >= 0) {
if (process.platform === 'win32') {
this.skip();
return;
}

scanner.scan(true, fixture('project-cannot-read-files'), /.*/)
scanner.scan(true, fixture('broken-links'), /.*/)
.then((fileStats) => {
assert.strictEqual(
fileStats.selectFiles(/broken-link\.js/, '').length, 0);
Expand Down

0 comments on commit 561435c

Please sign in to comment.