File tree 1 file changed +4
-8
lines changed
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ function evaluate(fn) {
25
25
) ;
26
26
}
27
27
28
+ afterEach ( function ( ) {
29
+ mock . restore ( ) ;
30
+ } ) ;
31
+
28
32
test ( 'github' , function ( ) {
29
33
mock ( mockRepo . master ) ;
30
34
@@ -42,8 +46,6 @@ test('github', function() {
42
46
path : 'index.js' ,
43
47
url : 'https://github.com/foo/bar/blob/this_is_the_sha/index.js#L6-L8'
44
48
} ) ;
45
-
46
- mock . restore ( ) ;
47
49
} ) ;
48
50
49
51
test ( 'malformed repository' , function ( ) {
@@ -60,8 +62,6 @@ test('malformed repository', function() {
60
62
}
61
63
} ) [ 0 ] . context . github
62
64
) . toBe ( undefined ) ;
63
-
64
- mock . restore ( ) ;
65
65
} ) ;
66
66
67
67
test ( 'enterprise repository' , function ( ) {
@@ -82,8 +82,6 @@ test('enterprise repository', function() {
82
82
url :
83
83
'https://github.enterprise.com/foo/bar/blob/this_is_the_sha/index.js#L6-L8'
84
84
} ) ;
85
-
86
- mock . restore ( ) ;
87
85
} ) ;
88
86
89
87
test ( 'typedef' , function ( ) {
@@ -108,6 +106,4 @@ test('typedef', function() {
108
106
path : 'index.js' ,
109
107
url : 'https://github.com/foo/bar/blob/this_is_the_sha/index.js#L1-L4'
110
108
} ) ;
111
-
112
- mock . restore ( ) ;
113
109
} ) ;
You can’t perform that action at this time.
0 commit comments