Skip to content

Commit

Permalink
Modify test to match Juris-M result
Browse files Browse the repository at this point in the history
  • Loading branch information
fbennett committed May 24, 2018
1 parent a16e734 commit 7e91e25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tests/zoteroTest.js
Expand Up @@ -38,12 +38,12 @@ describe("Zotero", function() {

it("should add Zotero/[major.minor] to Chrome user agent", function () {
var ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36';
assert.equal(Zotero.VersionHeader.update('example.com', ua, ZOTERO_CONFIG.CLIENT_NAME), ua + ` Zotero/${majorMinorVersion}`);
assert.equal(Zotero.VersionHeader.update('example.com', ua, ZOTERO_CONFIG.CLIENT_NAME), ua + ` Juris-M/${majorMinorVersion}`);
});

it("should add Zotero/[major.minor] to Firefox user agent", function () {
var ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Firefox/60.0';
assert.equal(Zotero.VersionHeader.update('example.com', ua, ZOTERO_CONFIG.CLIENT_NAME), ua + ` Zotero/${majorMinorVersion}`);
assert.equal(Zotero.VersionHeader.update('example.com', ua, ZOTERO_CONFIG.CLIENT_NAME), ua + ` Juris-M/${majorMinorVersion}`);
});
});
});
Expand Down

0 comments on commit 7e91e25

Please sign in to comment.