Fixed tests.

10.7.0-preview
mikeller 2019-09-15 23:31:23 +12:00
parent 005868bc07
commit 41d09d9796
1 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,12 @@
describe('TABS.cli', () => {
class MockAnalytics {
EVENT_CATEGORIES = {};
sendEvent() {}
}
var analytics;
describe('TABS.cli', () => {
function toArrayBuffer(string) {
var bufferOut = new ArrayBuffer(string.length);
var bufView = new Uint8Array(bufferOut);
@ -22,6 +29,8 @@ describe('TABS.cli', () => {
CliAutoComplete.setEnabled(false); // not testing the client-side autocomplete
before(() => {
analytics = new MockAnalytics();
$('body')
.append(cliTab);