Skip to content

Commit 41d09d9

Browse files
committed
Fixed tests.
1 parent 005868b commit 41d09d9

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/tabs/cli.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
describe('TABS.cli', () => {
1+
class MockAnalytics {
2+
EVENT_CATEGORIES = {};
3+
4+
sendEvent() {}
5+
}
6+
7+
var analytics;
28

9+
describe('TABS.cli', () => {
310
function toArrayBuffer(string) {
411
var bufferOut = new ArrayBuffer(string.length);
512
var bufView = new Uint8Array(bufferOut);
@@ -22,6 +29,8 @@ describe('TABS.cli', () => {
2229
CliAutoComplete.setEnabled(false); // not testing the client-side autocomplete
2330

2431
before(() => {
32+
analytics = new MockAnalytics();
33+
2534
$('body')
2635
.append(cliTab);
2736

0 commit comments

Comments
 (0)