Adjust tests to not use the dotsToHyphens proxy option
This commit is contained in:
parent
e3d13826c8
commit
378d8180e8
3 changed files with 4 additions and 4 deletions
|
@ -15,7 +15,7 @@ describe("Zotero.Proxies", function(){
|
|||
let proxies = Zotero.Proxies.getPotentialProxies(url);
|
||||
let expectedProxies = {};
|
||||
expectedProxies[url] = null;
|
||||
expectedProxies["https://www.example.com"] = {scheme: "https://%h.proxy.example.com/%p", dotsToHyphens: false};
|
||||
expectedProxies["https://www.example.com"] = {scheme: "https://%h.proxy.example.com/%p"};
|
||||
assert.deepEqual(proxies, expectedProxies);
|
||||
});
|
||||
|
||||
|
@ -24,7 +24,7 @@ describe("Zotero.Proxies", function(){
|
|||
let proxies = Zotero.Proxies.getPotentialProxies(url);
|
||||
let expectedProxies = {};
|
||||
expectedProxies[url] = null;
|
||||
expectedProxies["https://www.example.com"] = {scheme: "https://%h.proxy.example.com/%p", dotsToHyphens: true};
|
||||
expectedProxies["https://www.example.com"] = {scheme: "https://%h.proxy.example.com/%p"};
|
||||
assert.deepEqual(proxies, expectedProxies);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -237,7 +237,7 @@ describe("Connector Server", function () {
|
|||
}
|
||||
],
|
||||
uri: "https://www-example-com.proxy.example.com/path",
|
||||
proxy: {scheme: 'https://%h.proxy.example.com/%p', dotsToHyphens: true}
|
||||
proxy: {scheme: 'https://%h.proxy.example.com/%p'}
|
||||
};
|
||||
|
||||
var promise = waitForItemEvent('add');
|
||||
|
|
|
@ -1508,7 +1508,7 @@ describe("Zotero.Translate", function() {
|
|||
var itemSaver = new Zotero.Translate.ItemSaver({
|
||||
libraryID: Zotero.Libraries.userLibraryID,
|
||||
attachmentMode: Zotero.Translate.ItemSaver.ATTACHMENT_MODE_FILE,
|
||||
proxy: new Zotero.Proxy({scheme: 'https://%h.proxy.example.com/%p', dotsToHyphens: true})
|
||||
proxy: new Zotero.Proxy({scheme: 'https://%h.proxy.example.com/%p'})
|
||||
});
|
||||
var itemDeferred = Zotero.Promise.defer();
|
||||
var attachmentDeferred = Zotero.Promise.defer();
|
||||
|
|
Loading…
Reference in a new issue