File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 75
75
"mocha" : " ^2.3.4" ,
76
76
"must" : " ^0.13.1" ,
77
77
"nock" : " ^8.0.0" ,
78
- "nock-playback" : " ^1.1.0" ,
79
78
"vinyl-buffer" : " ^1.0.0" ,
80
79
"vinyl-source-stream" : " ^1.1.0"
81
80
},
Original file line number Diff line number Diff line change 1
1
import expect from 'must' ;
2
- import playback from 'nock-playback ' ;
2
+ import nock from 'nock' ;
3
3
4
4
import Github from '../lib/GitHub' ;
5
5
import testUser from './fixtures/user.json' ;
@@ -14,10 +14,9 @@ describe('Search', function() {
14
14
password : testUser . PASSWORD ,
15
15
auth : 'basic'
16
16
} ) ;
17
+ nock . load ( 'test/fixtures/search.json' ) ;
17
18
} ) ;
18
19
19
- playback ( 'search' ) ;
20
-
21
20
it ( 'should search repositories' , function ( ) {
22
21
let options ;
23
22
let search = github . search ( {
@@ -73,4 +72,9 @@ describe('Search', function() {
73
72
expect ( data . length ) . to . be . above ( 0 ) ;
74
73
} ) ;
75
74
} ) ;
75
+
76
+ after ( function ( ) {
77
+ nock . cleanAll ( ) ;
78
+ nock . restore ( ) ;
79
+ } ) ;
76
80
} ) ;
You can’t perform that action at this time.
0 commit comments