'use strict';

var App = require('../../src/chrome/background');

// a trivial example test
describe('Sample test', function() {

  App.initialize();

  it('Should have a test variable set to 7', function() {
    expect(App.testVariable).toEqual(7);
  });

});

@@ -123,16 +123,105 @@
 on() %7B%0A%0A
+  beforeAll(function() %7B%0A    spyOn(window.chrome.runtime.onInstalled, 'addListener');%0A%0A  
   App.in
@@ -231,16 +231,22 @@
 alize();
+%0A  %7D);
 %0A%0A  it('
@@ -345,12 +345,147 @@
 %0A  %7D);%0A%0A
+  it('should set up event listeners', function() %7B%0A    expect(window.chrome.runtime.onInstalled.addListener).toHaveBeenCalled();%0A  %7D);%0A
 %7D);%0A

Add spy example test