beforeEach(function() {
    jasmine.getEnv().defaultTimeoutInterval = 150000;
    optimist.boolean.reset();

    // Mock out call to get the app directory, return our project
    spyOn(utils, 'getProjectDirectory').andReturn(project);
    spyOn(IonicAppLib.multibar, 'newBar').andReturn({ tick: function() {} });

    console.log('Removing project', project);
    shell.rm('-rf', project);
    shell.mkdir('-p', tmpDir);

    // Copy over created project here.
  });
Example #2
0
  beforeEach(function() {
      jasmine.getEnv().defaultTimeoutInterval = 150000;
      // if (optimistSpy) {
      //   optimistSpy.reset();
      // }
      optimistSpy = spyOn(optimist, 'boolean');
      optimist.boolean.reset();

      //Mock out call to get the app directory, return our project
      spyOn(utils, 'getProjectDirectory').andReturn(project);

      //Disable console.log statements
      // spyOn(IonicAppLib.events, 'on');
      // spyOn(process.stdout, 'write');
      spyOn(IonicAppLib.multibar, 'newBar').andReturn({tick: function(){}});


      shell.rm('-rf', project);
      shell.mkdir('-p', tmpDir);
  });