Skip to content

Commit

Permalink
Manually fix remaining linting failures
Browse files Browse the repository at this point in the history
  • Loading branch information
rwjblue committed Apr 30, 2021
1 parent 403d123 commit 0f972c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
9 changes: 0 additions & 9 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,6 @@ import os = require('os');
const broccoliNodeInfo = require('broccoli-node-info');
import { InputNode } from 'broccoli-node-api';

import {
readFileSync,
existsSync,
lstatSync,
statSync,
readdirSync,
readdir,
} from 'fs';

import { entries, Options, Entry } from 'walk-sync';

type FileSystemOperation =
Expand Down
8 changes: 4 additions & 4 deletions tests/unit-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe('fs-reader', function () {
it('accessing test-1/x.txt file must throw error', function () {
expect(() => {
fsMerger.fs.readFileSync('test-1/x.txt', 'utf-8');
}).throw(/ENOENT\: no such file or directory, open.*/);
}).throw(/ENOENT: no such file or directory, open.*/);
});

it('last node "wins" (existsSync, lstatSync, statSync)', function () {
Expand Down Expand Up @@ -239,7 +239,7 @@ describe('fs-reader', function () {
it('readdirsync', function () {
expect(() => {
fsMerger.fs.readdirSync('sfsd');
}).throw(/ENOENT\: no such file or directory, scandir.*/);
}).throw(/ENOENT: no such file or directory, scandir.*/);
});

it('readdir', function (done) {
Expand Down Expand Up @@ -357,7 +357,7 @@ describe('fs-reader', function () {
let fsMerger = new FSMerge(['fixtures/test-1']);
expect(() => {
fsMerger.fs.lstatSync('reader.md', 'test');
}).to.throw(/ENOENT\: no such file or directory,*/);
}).to.throw(/ENOENT: no such file or directory,*/);
});
});

Expand Down Expand Up @@ -520,7 +520,7 @@ describe('fs-reader', function () {
it(`throws error`, function () {
expect(() => {
fsMerger.entries('fixtures/test-5');
}).to.throw(/ENOENT\: no such file or directory,*/);
}).to.throw(/ENOENT: no such file or directory,*/);
});
});

Expand Down

0 comments on commit 0f972c0

Please sign in to comment.