BokChoyWarrior commented on code in PR #1561:
URL: https://github.com/apache/couchdb-fauxton/pull/1561#discussion_r3791328672


##########
app/addons/replication/__tests__/actions.test.js:
##########
@@ -299,4 +299,85 @@ describe("Replication Actions", () => {
       setPageLimit(pageLimit)(dispatch);
     });
   });
+
+  describe('getReplicationStateFrom - URL classification', () => {
+    afterEach(() => {
+      fetchMock.reset();
+    });
+
+    it('classifies remote URLs as REMOTE (hostname differs from 
window.location)', (done) => {
+      // In jsdom, window.location.hostname is typically 'localhost' or similar

Review Comment:
   TODO: sort out these nonsensical tests



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to