mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
RF: Moved Analytics to class (#3222)
* RF: Moved Analytics to class * Modularisation of Google analytics. * Removing the code smells * Fix the unit tests * Simplified * Removed comment
This commit is contained in:
parent
00075939ac
commit
fd99e77335
21 changed files with 251 additions and 233 deletions
|
@ -6,7 +6,7 @@ class MockAnalytics {
|
|||
}
|
||||
}
|
||||
|
||||
let analytics;
|
||||
let tracking;
|
||||
|
||||
|
||||
describe('TABS.cli', () => {
|
||||
|
@ -33,7 +33,7 @@ describe('TABS.cli', () => {
|
|||
CliAutoComplete.setEnabled(false); // not testing the client-side autocomplete
|
||||
|
||||
before(() => {
|
||||
analytics = new MockAnalytics();
|
||||
tracking = new MockAnalytics();
|
||||
|
||||
$('body').append(cliTab);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue