Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 16, 2019
1 parent f036079 commit 515ebf6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
7 changes: 4 additions & 3 deletions test/helpers/gulpfiles/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ import { getInput } from './input.js'

const { command, opts, buffer } = getInput()

export const main = () => src(__filename, { buffer })
.pipe(stream(() => command, opts))
.pipe(through.obj(execVinyl))
export const main = () =>
src(__filename, { buffer })
.pipe(stream(() => command, opts))
.pipe(through.obj(execVinyl))

const cExecVinyl = async function({ contents, execa }) {
const string = await stringifyContents({ contents, execa })
Expand Down
10 changes: 7 additions & 3 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ const DATA = [

METHODS.forEach(methodProps => {
DATA.forEach(datum => {
test(`[${inspect(methodProps)}] [${inspect(
datum,
// eslint-disable-next-line max-nested-callbacks
test(`[${inspect(methodProps)}] [${inspect(datum)}] Dummy test`, async t => {
)}] Dummy test`, async t => {
const { exitCode, stdout, stderr } = await fireTask({
...methodProps,
...datum,
Expand All @@ -68,7 +70,10 @@ METHODS.forEach(methodProps => {

const fireTask = async function({ method, command, opts, buffer }) {
const input = JSON.stringify({ command, opts, buffer })
const { exitCode, stdout, stderr } = await execa(`gulp --gulpfile ${GULPFILES_DIR}/${method}.js main`, { reject: false, env: { INPUT: input } })
const { exitCode, stdout, stderr } = await execa(
`gulp --gulpfile ${GULPFILES_DIR}/${method}.js main`,
{ reject: false, env: { INPUT: input } },
)
const stdoutA = normalizeMessage(stdout)
const stderrA = normalizeMessage(stderr)
return { exitCode, stdout: stdoutA, stderr: stderrA }
Expand Down Expand Up @@ -98,4 +103,3 @@ const REPLACEMENTS = [
[/.*Working directory changed.*/gu, ''],
[/.*Using gulpfile.*/gu, ''],
]

0 comments on commit 515ebf6

Please sign in to comment.