File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ class Command {
35
35
* // ['#1','owner/repo#2', ...]
36
36
* })
37
37
*/
38
- export default (
38
+ export const addCommand = (
39
39
robot : any ,
40
40
name : RegExp ,
41
41
callback : ( context : any , issues : RegExpMatchArray ) => void
Original file line number Diff line number Diff line change 2
2
import { EventEmitter } from 'events'
3
3
4
4
// Ours
5
- import commands from '.'
5
+ import { addCommand } from '.'
6
6
7
- describe ( 'commands ' , ( ) => {
7
+ describe ( 'addCommand ' , ( ) => {
8
8
let callback : any
9
9
let robot : any
10
10
@@ -15,7 +15,7 @@ describe('commands', () => {
15
15
beforeEach ( ( ) => {
16
16
callback = jest . fn ( )
17
17
robot = new EventEmitter ( )
18
- commands ( robot , / f o o ( i n g ) ? / , callback )
18
+ addCommand ( robot , / f o o ( i n g ) ? / , callback )
19
19
} )
20
20
21
21
it ( 'invokes callback and passes issues list' , ( ) => {
You can’t perform that action at this time.
0 commit comments