import * as sinon from 'sinon';
export class XMLHttpTestTools {
    static JSON_HEADER = { 'Content-Type': 'application/json' };
    static xhr;
    static requests;
    static beforeEach() {
        this.xhr = sinon.useFakeXMLHttpRequest();
        this.requests = [];
        this.xhr.onCreate = (xhr) => {
            this.requests.push(xhr);
        };
    }
}
