it('returns an instance of PersistentUserCallout with the provided container property', () => {
      const fixture = createFixture();

      expect(PersistentUserCallout.factory(fixture) instanceof PersistentUserCallout).toBe(true);
    });
 it('returns undefined if container is falsey', () => {
   expect(PersistentUserCallout.factory()).toBe(undefined);
 });
Exemplo n.º 3
0
function initGcpSignupCallout() {
  const callout = document.querySelector('.gcp-signup-offer');
  PersistentUserCallout.factory(callout);
}