Skip to content

Commit

Permalink
Move files
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 17, 2019
1 parent 48cb308 commit ec2462a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
11 changes: 11 additions & 0 deletions test/helpers/methods.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
export const STREAM_METHODS = [
{ suffix: 'stream-buffer', method: 'stream' },
{ suffix: 'stream-stream', method: 'stream', buffer: false },
{ suffix: 'stream-save', method: 'stream', opts: { result: 'save' } },
]

export const METHODS = [
{ suffix: 'exec', method: 'exec' },
{ suffix: 'task', method: 'task' },
...STREAM_METHODS,
]
13 changes: 1 addition & 12 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,7 @@ import test from 'ava'

import { testEach } from './helpers/test_each/main.js'
import { snapshotTest } from './helpers/snapshot.js'

const STREAM_METHODS = [
{ suffix: 'stream-buffer', method: 'stream' },
{ suffix: 'stream-stream', method: 'stream', buffer: false },
{ suffix: 'stream-save', method: 'stream', opts: { result: 'save' } },
]

const METHODS = [
{ suffix: 'exec', method: 'exec' },
{ suffix: 'task', method: 'task' },
...STREAM_METHODS,
]
import { METHODS, STREAM_METHODS } from './helpers/methods.js'

testEach(METHODS, [
{ command: true },
Expand Down

0 comments on commit ec2462a

Please sign in to comment.