@@ -72,7 +72,7 @@ var fs = require('fs'),
72
72
request : function ( ) { }
73
73
} ;
74
74
soap . createClient ( __dirname + '/wsdl/default_namespace.wsdl' ,
75
- _ . assign ( { httpClient : myHttpClient } , meta . options ) ,
75
+ Object . assign ( { httpClient : myHttpClient } , meta . options ) ,
76
76
function ( err , client ) {
77
77
assert . ok ( client ) ;
78
78
assert . ifError ( err ) ;
@@ -85,7 +85,7 @@ var fs = require('fs'),
85
85
var myRequest = function ( ) {
86
86
} ;
87
87
soap . createClient ( __dirname + '/wsdl/default_namespace.wsdl' ,
88
- _ . assign ( { request : myRequest } , meta . options ) ,
88
+ Object . assign ( { request : myRequest } , meta . options ) ,
89
89
function ( err , client ) {
90
90
assert . ok ( client ) ;
91
91
assert . ifError ( err ) ;
@@ -96,7 +96,7 @@ var fs = require('fs'),
96
96
97
97
98
98
it ( 'should allow customization of envelope' , function ( done ) {
99
- soap . createClient ( __dirname + '/wsdl/default_namespace.wsdl' , _ . assign ( { envelopeKey : 'soapenv' } , meta . options ) , function ( err , client ) {
99
+ soap . createClient ( __dirname + '/wsdl/default_namespace.wsdl' , Object . assign ( { envelopeKey : 'soapenv' } , meta . options ) , function ( err , client ) {
100
100
assert . ok ( client ) ;
101
101
assert . ifError ( err ) ;
102
102
@@ -109,7 +109,7 @@ var fs = require('fs'),
109
109
110
110
111
111
it ( 'should allow passing in XML strings' , function ( done ) {
112
- soap . createClient ( __dirname + '/wsdl/default_namespace.wsdl' , _ . assign ( { envelopeKey : 'soapenv' } , meta . options ) , function ( err , client ) {
112
+ soap . createClient ( __dirname + '/wsdl/default_namespace.wsdl' , Object . assign ( { envelopeKey : 'soapenv' } , meta . options ) , function ( err , client ) {
113
113
assert . ok ( client ) ;
114
114
assert . ifError ( err ) ;
115
115
@@ -135,7 +135,7 @@ var fs = require('fs'),
135
135
136
136
it ( 'should allow disabling the wsdl cache' , function ( done ) {
137
137
var spy = sinon . spy ( wsdl , 'open_wsdl' ) ;
138
- var options = _ . assign ( { disableCache : true } , meta . options ) ;
138
+ var options = Object . assign ( { disableCache : true } , meta . options ) ;
139
139
soap . createClient ( __dirname + '/wsdl/binding_document.wsdl' , options , function ( err1 , client1 ) {
140
140
assert . ok ( client1 ) ;
141
141
assert . ok ( ! err1 ) ;
@@ -279,7 +279,7 @@ var fs = require('fs'),
279
279
} ) ;
280
280
281
281
it ( 'Should preserve SOAP 1.2 "action" header when sending MTOM request' , function ( done ) {
282
- soap . createClient ( __dirname + '/wsdl/attachments.wsdl' , _ . assign ( { forceSoap12Headers : true } , meta . options ) , function ( initError , client ) {
282
+ soap . createClient ( __dirname + '/wsdl/attachments.wsdl' , Object . assign ( { forceSoap12Headers : true } , meta . options ) , function ( initError , client ) {
283
283
assert . ifError ( initError ) ;
284
284
285
285
client . MyOperation ( { } , function ( error , response , body , soapHeader , rawRequest ) {
@@ -291,7 +291,7 @@ var fs = require('fs'),
291
291
} )
292
292
293
293
it ( 'Should send MTOM request even without attachment' , function ( done ) {
294
- soap . createClient ( __dirname + '/wsdl/attachments.wsdl' , _ . assign ( { forceSoap12Headers : true } , meta . options ) , function ( initError , client ) {
294
+ soap . createClient ( __dirname + '/wsdl/attachments.wsdl' , Object . assign ( { forceSoap12Headers : true } , meta . options ) , function ( initError , client ) {
295
295
assert . ifError ( initError ) ;
296
296
297
297
client . MyOperation ( { } , function ( error , response , body , soapHeader , rawRequest ) {
@@ -536,7 +536,7 @@ var fs = require('fs'),
536
536
} ) ;
537
537
538
538
it ( 'should add proper headers for soap12' , function ( done ) {
539
- soap . createClient ( __dirname + '/wsdl/default_namespace_soap12.wsdl' , _ . assign ( { forceSoap12Headers : true } , meta . options ) , function ( err , client ) {
539
+ soap . createClient ( __dirname + '/wsdl/default_namespace_soap12.wsdl' , Object . assign ( { forceSoap12Headers : true } , meta . options ) , function ( err , client ) {
540
540
assert . ok ( client ) ;
541
541
assert . ifError ( err ) ;
542
542
@@ -1143,7 +1143,7 @@ var fs = require('fs'),
1143
1143
on : function ( ) { }
1144
1144
} ;
1145
1145
} ;
1146
- var options = _ . assign ( {
1146
+ var options = Object . assign ( {
1147
1147
request : mockRequestHandler ,
1148
1148
} , meta . options ) ;
1149
1149
soap . createClient ( __dirname + '/wsdl/builtin_types.wsdl' , options , function ( err , client ) {
@@ -1365,7 +1365,7 @@ var fs = require('fs'),
1365
1365
request : function ( ) { }
1366
1366
} ;
1367
1367
soap . createClientAsync ( __dirname + '/wsdl/default_namespace.wsdl' ,
1368
- _ . assign ( { httpClient : myHttpClient } , meta . options ) )
1368
+ Object . assign ( { httpClient : myHttpClient } , meta . options ) )
1369
1369
. then ( function ( client ) {
1370
1370
assert . ok ( client ) ;
1371
1371
assert . equal ( client . httpClient , myHttpClient ) ;
@@ -1377,7 +1377,7 @@ var fs = require('fs'),
1377
1377
var myRequest = function ( ) {
1378
1378
} ;
1379
1379
soap . createClientAsync ( __dirname + '/wsdl/default_namespace.wsdl' ,
1380
- _ . assign ( { request : myRequest } , meta . options ) )
1380
+ Object . assign ( { request : myRequest } , meta . options ) )
1381
1381
. then ( function ( client ) {
1382
1382
assert . ok ( client ) ;
1383
1383
assert . equal ( client . httpClient . _request , myRequest ) ;
@@ -1395,7 +1395,7 @@ var fs = require('fs'),
1395
1395
} ) ;
1396
1396
1397
1397
it ( 'should allow passing in XML strings' , function ( done ) {
1398
- soap . createClientAsync ( __dirname + '/wsdl/default_namespace.wsdl' , _ . assign ( { envelopeKey : 'soapenv' } , meta . options ) )
1398
+ soap . createClientAsync ( __dirname + '/wsdl/default_namespace.wsdl' , Object . assign ( { envelopeKey : 'soapenv' } , meta . options ) )
1399
1399
. then ( function ( client ) {
1400
1400
assert . ok ( client ) ;
1401
1401
var xmlStr = '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n\t<head>\n\t\t<title>404 - Not Found</title>\n\t</head>\n\t<body>\n\t\t<h1>404 - Not Found</h1>\n\t\t<script type="text/javascript" src="http://gp1.wpc.edgecastcdn.net/00222B/beluga/pilot_rtm/beluga_beacon.js"></script>\n\t</body>\n</html>' ;
@@ -1409,7 +1409,7 @@ var fs = require('fs'),
1409
1409
1410
1410
it ( 'should allow customization of envelope' , function ( done ) {
1411
1411
var client ;
1412
- soap . createClientAsync ( __dirname + '/wsdl/default_namespace.wsdl' , _ . assign ( { envelopeKey : 'soapenv' } , meta . options ) )
1412
+ soap . createClientAsync ( __dirname + '/wsdl/default_namespace.wsdl' , Object . assign ( { envelopeKey : 'soapenv' } , meta . options ) )
1413
1413
. then ( function ( createdClient ) {
1414
1414
assert . ok ( createdClient ) ;
1415
1415
client = createdClient ;
@@ -1448,7 +1448,7 @@ var fs = require('fs'),
1448
1448
1449
1449
it ( 'should allow disabling the wsdl cache' , function ( done ) {
1450
1450
var spy = sinon . spy ( wsdl , 'open_wsdl' ) ;
1451
- var options = _ . assign ( { disableCache : true } , meta . options ) ;
1451
+ var options = Object . assign ( { disableCache : true } , meta . options ) ;
1452
1452
soap . createClientAsync ( __dirname + '/wsdl/binding_document.wsdl' , options )
1453
1453
. then ( function ( client ) {
1454
1454
assert . ok ( client ) ;
@@ -1484,7 +1484,7 @@ var fs = require('fs'),
1484
1484
describe ( 'Client created with option normalizeNames' , function ( ) {
1485
1485
1486
1486
it ( 'should create node-style method with normalized name (a valid Javascript identifier)' , function ( done ) {
1487
- soap . createClient ( __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl' , _ . assign ( { normalizeNames : true } , meta . options ) , function ( err , client ) {
1487
+ soap . createClient ( __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl' , Object . assign ( { normalizeNames : true } , meta . options ) , function ( err , client ) {
1488
1488
assert . ok ( client ) ;
1489
1489
assert . ifError ( err ) ;
1490
1490
client . prefixed_MyOperation ( { } , function ( err , result ) {
@@ -1511,7 +1511,7 @@ var fs = require('fs'),
1511
1511
} ) ;
1512
1512
1513
1513
it ( 'should create promise-style method with normalized name (a valid Javascript identifier)' , function ( done ) {
1514
- soap . createClient ( __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl' , _ . assign ( { normalizeNames : true } , meta . options ) , function ( err , client ) {
1514
+ soap . createClient ( __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl' , Object . assign ( { normalizeNames : true } , meta . options ) , function ( err , client ) {
1515
1515
assert . ok ( client ) ;
1516
1516
assert . ifError ( err ) ;
1517
1517
client . prefixed_MyOperationAsync ( { } )
@@ -1525,7 +1525,7 @@ var fs = require('fs'),
1525
1525
} ) ;
1526
1526
1527
1527
it ( 'should not create methods with invalid Javascript identifier' , function ( done ) {
1528
- soap . createClient ( __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl' , _ . assign ( { normalizeNames : true } , meta . options ) , function ( err , client ) {
1528
+ soap . createClient ( __dirname + '/wsdl/non_identifier_chars_in_operation.wsdl' , Object . assign ( { normalizeNames : true } , meta . options ) , function ( err , client ) {
1529
1529
assert . ok ( client ) ;
1530
1530
assert . ifError ( err ) ;
1531
1531
assert . throws ( function ( ) { client [ 'prefixed-MyOperationAsync' ] ( { } ) ; } , TypeError ) ;
0 commit comments