Skip to content

Commit

Permalink
add basic test to check that learning is disabled on localhost
Browse files Browse the repository at this point in the history
  • Loading branch information
ablanathtanalba committed Oct 3, 2020
1 parent 7010c79 commit c987989
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/tests/tests/tabData.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit c987989

Please sign in to comment.