diff --git a/spec/fixtures/cat.exe b/spec/fixtures/cat.exe deleted file mode 100644 index c2d27d4..0000000 Binary files a/spec/fixtures/cat.exe and /dev/null differ diff --git a/spec/helper-spec.js b/spec/helper-spec.js index 133a986..d3a2386 100644 --- a/spec/helper-spec.js +++ b/spec/helper-spec.js @@ -11,7 +11,6 @@ const stderrFile = path.join(__dirname, 'fixtures', 'stderr.js') const stderrScript = path.join(__dirname, 'fixtures', 'stderr') + (process.platform !== 'win32' ? '.sh' : '.bat') const testFile = path.join(__dirname, 'fixtures', 'test.txt') -const winCatBin = path.join(__dirname, 'fixtures', 'cat.exe') const packageJsonPath = fs.realpathSync(`${__dirname}/../package.json`) const testContents = fs.readFileSync(testFile).toString() @@ -20,7 +19,7 @@ describe('linter helpers', () => { describe('::exec*', () => { // `cd` with no params prints the current dir on Windows const pwdCommand = process.platform !== 'win32' ? 'pwd' : 'cd' - const catCommand = process.platform !== 'win32' ? 'cat' : winCatBin + const catCommand = process.platform !== 'win32' ? 'cat' : 'type' it('cries when no argument is passed', () => { expect(() => @@ -72,14 +71,6 @@ describe('linter helpers', () => { expect(data).toBe('STDOUTWow') ) ) - return waitsForPromise(() => - helpers.exec(catCommand, [], { - stream: 'stdout', - stdin: testContents - }).then(text => - expect(text).toBe(testContents) - ) - ) }) it("throws if stderr is written to but wasn't expected", () => {