@@ -46,10 +46,10 @@ function fakeXhrTearDown() {
4646function runWithWorkingXHROveride ( workingXHR , test ) {
4747 var original ;
4848 try {
49- // eslint-disable-line no-restricted-syntax
49+
5050 original = sinonFakeXhr . xhr . workingXHR ;
5151 sinonFakeXhr . xhr . workingXHR = workingXHR ;
52- test ( ) ; // eslint-disable-line mocha/no-empty-description
52+ test ( ) ;
5353 } finally {
5454 sinonFakeXhr . xhr . workingXHR = original ;
5555 }
@@ -1483,13 +1483,13 @@ describe("FakeXMLHttpRequest", function () {
14831483
14841484 // eslint-disable-next-line mocha/no-setup-in-describe
14851485 assertRequestErrorSteps ( function ( xhr ) {
1486- // eslint-disable-next-line mocha/no-setup-in-describe
1486+
14871487 xhr . abort ( ) ;
14881488 } ) ;
14891489
14901490 // eslint-disable-next-line mocha/no-setup-in-describe
14911491 assertEventOrdering ( "abort" , 0 , function ( xhr ) {
1492- // eslint-disable-next-line mocha/no-setup-in-describe
1492+
14931493 xhr . abort ( ) ;
14941494 } ) ;
14951495 } ) ;
@@ -1559,7 +1559,7 @@ describe("FakeXMLHttpRequest", function () {
15591559
15601560 // eslint-disable-next-line mocha/no-setup-in-describe
15611561 assertEventOrdering ( "error" , 0 , function ( xhr ) {
1562- // eslint-disable-next-line mocha/no-setup-in-describe
1562+
15631563 xhr . error ( ) ;
15641564 } ) ;
15651565 } ) ;
@@ -1662,13 +1662,13 @@ describe("FakeXMLHttpRequest", function () {
16621662
16631663 // eslint-disable-next-line mocha/no-setup-in-describe
16641664 assertRequestErrorSteps ( function ( xhr ) {
1665- // eslint-disable-next-line mocha/no-setup-in-describe
1665+
16661666 xhr . triggerTimeout ( ) ;
16671667 } ) ;
16681668
16691669 // eslint-disable-next-line mocha/no-setup-in-describe
16701670 assertEventOrdering ( "timeout" , 0 , function ( xhr ) {
1671- // eslint-disable-next-line mocha/no-setup-in-describe
1671+
16721672 xhr . triggerTimeout ( ) ;
16731673 } ) ;
16741674 } ) ;
@@ -2080,7 +2080,7 @@ describe("FakeXMLHttpRequest", function () {
20802080 this . xhr . respond (
20812081 200 ,
20822082 { "Content-Type" : "application/xml" } ,
2083- //eslint-disable-next-line quotes
2083+
20842084 '!!!<?xml version="1.0" encoding="UTF-8"?><broken>' ,
20852085 ) ;
20862086
@@ -2372,7 +2372,7 @@ describe("FakeXMLHttpRequest", function () {
23722372
23732373 it ( "performs initial readystatechange on opening when filters are being used, but don't match" , function ( ) {
23742374 try {
2375- // eslint-disable-line no-restricted-syntax
2375+
23762376 FakeXMLHttpRequest . useFilters = true ;
23772377 var spy = sinonSpy ( ) ;
23782378 fakeXhr . addEventListener ( "readystatechange" , spy ) ;
@@ -2618,37 +2618,37 @@ describe("FakeXMLHttpRequest", function () {
26182618 it ( "hijacks ActiveXObject" , function ( ) {
26192619 refute . same ( global . ActiveXObject , globalActiveXObject ) ;
26202620 refute . same ( global . ActiveXObject , globalActiveXObject ) ;
2621- refute . same ( ActiveXObject , globalActiveXObject ) ; // eslint-disable-line no-undef
2621+ refute . same ( ActiveXObject , globalActiveXObject ) ;
26222622 } ) ;
26232623
26242624 it ( "restores global ActiveXObject" , function ( ) {
26252625 fakeXhr . restore ( ) ;
26262626
26272627 assert . same ( global . ActiveXObject , globalActiveXObject ) ;
26282628 assert . same ( global . ActiveXObject , globalActiveXObject ) ;
2629- assert . same ( ActiveXObject , globalActiveXObject ) ; // eslint-disable-line no-undef
2629+ assert . same ( ActiveXObject , globalActiveXObject ) ;
26302630 } ) ;
26312631
26322632 it ( "creates FakeXHR object with ActiveX Microsoft.XMLHTTP" , function ( ) {
2633- var xhr = new ActiveXObject ( "Microsoft.XMLHTTP" ) ; // eslint-disable-line no-undef
2633+ var xhr = new ActiveXObject ( "Microsoft.XMLHTTP" ) ;
26342634
26352635 assert ( xhr instanceof FakeXMLHttpRequest ) ;
26362636 } ) ;
26372637
26382638 it ( "creates FakeXHR object with ActiveX Msxml2.XMLHTTP" , function ( ) {
2639- var xhr = new ActiveXObject ( "Msxml2.XMLHTTP" ) ; // eslint-disable-line no-undef
2639+ var xhr = new ActiveXObject ( "Msxml2.XMLHTTP" ) ;
26402640
26412641 assert ( xhr instanceof FakeXMLHttpRequest ) ;
26422642 } ) ;
26432643
26442644 it ( "creates FakeXHR object with ActiveX Msxml2.XMLHTTP.3.0" , function ( ) {
2645- var xhr = new ActiveXObject ( "Msxml2.XMLHTTP.3.0" ) ; // eslint-disable-line no-undef
2645+ var xhr = new ActiveXObject ( "Msxml2.XMLHTTP.3.0" ) ;
26462646
26472647 assert ( xhr instanceof FakeXMLHttpRequest ) ;
26482648 } ) ;
26492649
26502650 it ( "creates FakeXHR object with ActiveX Msxml2.XMLHTTP.6.0" , function ( ) {
2651- var xhr = new ActiveXObject ( "Msxml2.XMLHTTP.6.0" ) ; // eslint-disable-line no-undef
2651+ var xhr = new ActiveXObject ( "Msxml2.XMLHTTP.6.0" ) ;
26522652
26532653 assert ( xhr instanceof FakeXMLHttpRequest ) ;
26542654 } ) ;
@@ -2931,7 +2931,7 @@ describe("FakeXMLHttpRequest", function () {
29312931
29322932 // eslint-disable-next-line mocha/no-setup-in-describe
29332933 assertEventOrdering ( "load" , 100 , function ( xhr ) {
2934- // eslint-disable-next-line mocha/no-setup-in-describe
2934+
29352935 xhr . respond ( 200 , { } , "" ) ;
29362936 } ) ;
29372937
0 commit comments