From c987989c1f9ac39c72447104234b66704f778e1c Mon Sep 17 00:00:00 2001 From: ablanathtanalba Date: Fri, 2 Oct 2020 18:00:50 -0700 Subject: [PATCH] add basic test to check that learning is disabled on localhost --- src/tests/tests/tabData.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/tests/tests/tabData.js b/src/tests/tests/tabData.js index c578cd1282..cef8c8a389 100644 --- a/src/tests/tests/tabData.js +++ b/src/tests/tests/tabData.js @@ -38,6 +38,14 @@ function() { }, }); + QUnit.test("learning is disabled on localhost", function (assert) { + const LOCALSITE = "localhost"; + + assert.notOk( + badger.isLearningEnabled(this.tabId, LOCALSITE), "learning is disabled on localhost site" + ); + }); + QUnit.test("logging blocked domain", function (assert) { const DOMAIN = "example.com";