@@ -46,7 +46,6 @@ function fakeXhrTearDown() {
4646function runWithWorkingXHROveride ( workingXHR , test ) {
4747 var original ;
4848 try {
49-
5049 original = sinonFakeXhr . xhr . workingXHR ;
5150 sinonFakeXhr . xhr . workingXHR = workingXHR ;
5251 test ( ) ;
@@ -1483,13 +1482,11 @@ describe("FakeXMLHttpRequest", function () {
14831482
14841483 // eslint-disable-next-line mocha/no-setup-in-describe
14851484 assertRequestErrorSteps ( function ( xhr ) {
1486-
14871485 xhr . abort ( ) ;
14881486 } ) ;
14891487
14901488 // eslint-disable-next-line mocha/no-setup-in-describe
14911489 assertEventOrdering ( "abort" , 0 , function ( xhr ) {
1492-
14931490 xhr . abort ( ) ;
14941491 } ) ;
14951492 } ) ;
@@ -1559,7 +1556,6 @@ describe("FakeXMLHttpRequest", function () {
15591556
15601557 // eslint-disable-next-line mocha/no-setup-in-describe
15611558 assertEventOrdering ( "error" , 0 , function ( xhr ) {
1562-
15631559 xhr . error ( ) ;
15641560 } ) ;
15651561 } ) ;
@@ -1662,13 +1658,11 @@ describe("FakeXMLHttpRequest", function () {
16621658
16631659 // eslint-disable-next-line mocha/no-setup-in-describe
16641660 assertRequestErrorSteps ( function ( xhr ) {
1665-
16661661 xhr . triggerTimeout ( ) ;
16671662 } ) ;
16681663
16691664 // eslint-disable-next-line mocha/no-setup-in-describe
16701665 assertEventOrdering ( "timeout" , 0 , function ( xhr ) {
1671-
16721666 xhr . triggerTimeout ( ) ;
16731667 } ) ;
16741668 } ) ;
@@ -2080,7 +2074,7 @@ describe("FakeXMLHttpRequest", function () {
20802074 this . xhr . respond (
20812075 200 ,
20822076 { "Content-Type" : "application/xml" } ,
2083-
2077+
20842078 '!!!<?xml version="1.0" encoding="UTF-8"?><broken>' ,
20852079 ) ;
20862080
@@ -2372,7 +2366,6 @@ describe("FakeXMLHttpRequest", function () {
23722366
23732367 it ( "performs initial readystatechange on opening when filters are being used, but don't match" , function ( ) {
23742368 try {
2375-
23762369 FakeXMLHttpRequest . useFilters = true ;
23772370 var spy = sinonSpy ( ) ;
23782371 fakeXhr . addEventListener ( "readystatechange" , spy ) ;
@@ -2618,37 +2611,37 @@ describe("FakeXMLHttpRequest", function () {
26182611 it ( "hijacks ActiveXObject" , function ( ) {
26192612 refute . same ( global . ActiveXObject , globalActiveXObject ) ;
26202613 refute . same ( global . ActiveXObject , globalActiveXObject ) ;
2621- refute . same ( ActiveXObject , globalActiveXObject ) ;
2614+ refute . same ( ActiveXObject , globalActiveXObject ) ;
26222615 } ) ;
26232616
26242617 it ( "restores global ActiveXObject" , function ( ) {
26252618 fakeXhr . restore ( ) ;
26262619
26272620 assert . same ( global . ActiveXObject , globalActiveXObject ) ;
26282621 assert . same ( global . ActiveXObject , globalActiveXObject ) ;
2629- assert . same ( ActiveXObject , globalActiveXObject ) ;
2622+ assert . same ( ActiveXObject , globalActiveXObject ) ;
26302623 } ) ;
26312624
26322625 it ( "creates FakeXHR object with ActiveX Microsoft.XMLHTTP" , function ( ) {
2633- var xhr = new ActiveXObject ( "Microsoft.XMLHTTP" ) ;
2626+ var xhr = new ActiveXObject ( "Microsoft.XMLHTTP" ) ;
26342627
26352628 assert ( xhr instanceof FakeXMLHttpRequest ) ;
26362629 } ) ;
26372630
26382631 it ( "creates FakeXHR object with ActiveX Msxml2.XMLHTTP" , function ( ) {
2639- var xhr = new ActiveXObject ( "Msxml2.XMLHTTP" ) ;
2632+ var xhr = new ActiveXObject ( "Msxml2.XMLHTTP" ) ;
26402633
26412634 assert ( xhr instanceof FakeXMLHttpRequest ) ;
26422635 } ) ;
26432636
26442637 it ( "creates FakeXHR object with ActiveX Msxml2.XMLHTTP.3.0" , function ( ) {
2645- var xhr = new ActiveXObject ( "Msxml2.XMLHTTP.3.0" ) ;
2638+ var xhr = new ActiveXObject ( "Msxml2.XMLHTTP.3.0" ) ;
26462639
26472640 assert ( xhr instanceof FakeXMLHttpRequest ) ;
26482641 } ) ;
26492642
26502643 it ( "creates FakeXHR object with ActiveX Msxml2.XMLHTTP.6.0" , function ( ) {
2651- var xhr = new ActiveXObject ( "Msxml2.XMLHTTP.6.0" ) ;
2644+ var xhr = new ActiveXObject ( "Msxml2.XMLHTTP.6.0" ) ;
26522645
26532646 assert ( xhr instanceof FakeXMLHttpRequest ) ;
26542647 } ) ;
@@ -2931,7 +2924,6 @@ describe("FakeXMLHttpRequest", function () {
29312924
29322925 // eslint-disable-next-line mocha/no-setup-in-describe
29332926 assertEventOrdering ( "load" , 100 , function ( xhr ) {
2934-
29352927 xhr . respond ( 200 , { } , "" ) ;
29362928 } ) ;
29372929
0 commit comments