@@ -22,7 +22,7 @@ describe('mapboxgl_DatasourceService', () => {
2222 //获取数据源集服务
2323 it ( 'success:getDatasources' , ( done ) => {
2424 var service = new DatasourceService ( url , options ) ;
25- spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl , options ) => {
25+ spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl , undefined , options ) => {
2626 expect ( method ) . toBe ( "GET" ) ;
2727 expect ( testUrl ) . toBe ( url + "/datasources" ) ;
2828 expect ( options ) . not . toBeNull ( ) ;
@@ -50,7 +50,7 @@ describe('mapboxgl_DatasourceService', () => {
5050 //数据源信息查询服务成功事件
5151 it ( 'success:getDatasource' , ( done ) => {
5252 var service = new DatasourceService ( url , options ) ;
53- spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl , options ) => {
53+ spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl , undefined , options ) => {
5454 expect ( method ) . toBe ( "GET" ) ;
5555 expect ( testUrl ) . toBe ( url + "/datasources/name/World" ) ;
5656 expect ( options ) . not . toBeNull ( ) ;
@@ -79,7 +79,7 @@ describe('mapboxgl_DatasourceService', () => {
7979 //数据源信息查询服务失败事件
8080 it ( 'fail:getDatasource' , ( done ) => {
8181 var service = new DatasourceService ( url , options ) ;
82- spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl , options ) => {
82+ spyOn ( FetchRequest , 'commit' ) . and . callFake ( ( method , testUrl , undefined , options ) => {
8383 expect ( method ) . toBe ( "GET" ) ;
8484 expect ( testUrl ) . toBe ( url + "/datasources/name/World1" ) ;
8585 expect ( options ) . not . toBeNull ( ) ;
0 commit comments