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 7575 "mocha" : " ^2.3.4" ,
7676 "must" : " ^0.13.1" ,
7777 "nock" : " ^8.0.0" ,
78- "nock-playback" : " ^1.1.0" ,
7978 "vinyl-buffer" : " ^1.0.0" ,
8079 "vinyl-source-stream" : " ^1.1.0"
8180 },
Original file line number Diff line number Diff line change 11import expect from 'must' ;
2- import playback from 'nock-playback ' ;
2+ import nock from 'nock' ;
33
44import Github from '../lib/GitHub' ;
55import testUser from './fixtures/user.json' ;
@@ -14,10 +14,9 @@ describe('Search', function() {
1414 password : testUser . PASSWORD ,
1515 auth : 'basic'
1616 } ) ;
17+ nock . load ( 'test/fixtures/search.json' ) ;
1718 } ) ;
1819
19- playback ( 'search' ) ;
20-
2120 it ( 'should search repositories' , function ( ) {
2221 let options ;
2322 let search = github . search ( {
@@ -73,4 +72,9 @@ describe('Search', function() {
7372 expect ( data . length ) . to . be . above ( 0 ) ;
7473 } ) ;
7574 } ) ;
75+
76+ after ( function ( ) {
77+ nock . cleanAll ( ) ;
78+ nock . restore ( ) ;
79+ } ) ;
7680} ) ;
You can’t perform that action at this time.
0 commit comments