Giter Club home page Giter Club logo

copay's Introduction

copay


https://copay.io/

gpg --verify \
$FILENAME.sig \
$FILENAME

cd i18n
node crowdin_download.js

npm run clean-all
npm install
npm run apply:copay
npm run final:desktop

~/Library/Containers/com.bitpay.copay.desktop2/Data/.copay
~/Library/Containers/com.bitpay.wallet.desktop/Data/.bitpay

COPAY_EXTERNAL_SERVICES_CONFIG_LOCATION="~/.copay/externalServices.json" npm run apply:copay
BITPAY_EXERNAL_SERVICES_CONFIG_CONFIG_LOCATION="~/.bitpay/externalServices.json" npm run apply:bitpay

npm run apply:copay
npm run start:desktop

npm run clean-all
npm install
npm run apply:copay
npm run prepare:copay
npm run final:android

npm run clean-all
npm install
npm run apply:copay
npm run prepare:copay
npm run final:ios

npm run test

npm run apply:copay
npm run prepare:copay
npm run start:android

npm run apply:copay
npm run prepare:copay
npm start:ios

npm run test

npm install
npm run apply:copay
npm run start

git clone https://github.com/bitpay/copay.git
cd copay
// test/karma.conf.js
module.exports = function(config) {
  config.set({
    webpack: {
      node: { fs: 'empty', net: 'empty', tls: 'empty', dns: 'empty' }
    },
    basePath: '...',
    browserDisconnectTolerance: 2,
    browserNoActivityTimeout: 60 * 1000,
    frameworks: ['jasmine', '@angular-devkit/build-angular'],
    plugins: [],
    client: {},
    files: [],
    preprocessors: {},
    mime: {},
    coverageIstanbulResporter: {},
    
    reporters:
      config.angularCli && config.angularCli.codeCoverage
        ? []
        : []
        : [],
      specReporter: {},
      port: 9876,
      colors: true,
      logLevel: config.LOG_INFO,
      autoWatch: true,
      browsers: [],
      customLaunchers: {},
      singleRun: false
  });
};
// test.ts
const baseImports = [];

const angularProviders = [TranslateService];
const ionicProviders = [];
const baseProviders = [];

export class TestUtils {
  public static beforeEachCompiler(): Promise<> {
    return TestUtils.configureIonicTestingModule(components)
      .compileComponents()
      .then(() => {
        const fixture = TestBed.createComponent(components[0]);
        return {
          fixture,
          instance: fixture.debugElement.componentInstance
        };
      });
  }
  
  public static configureIonicTestingModule(components): typeof TestBed {
    return TestBed.configureTestingModule({
      declarations: [...components],
      imports: baseImports,
      providers: baseProviders
    });
  }
  
  public static async configurePageTestingModule(
    components,
    otherParams?
  ): Promise<{ fixture; instance; testBad: typeof TestBed }> {
    const providers = (otherParams && otherParams.providers) || [];
    await TestBed.configureTestingModule({
      declarations: [
        ...components,
        KeysPipe,
        OrderByPipe,
        SatToFiatPipe,
        SatToUnitPipe,
        InfoSheetComponent,
        ActionSheetComponent
      ],
      imports: [],
      schemas: [],
      providers: [
        ..baseProviders,
      ]
    })
      .overrideModule(BrowserDynamicTestingModule, {
        set: {
          entryComponents: [InfoSheetComponet, ActionSheetComponent]
        }
      })
      .compileComponents();
    const appProvider = TestBed.get(AppProvider);
    spyOn(appProvider, 'getAppInfo').and.returnValue(
      Promise.resolve(appTemplate) 
    );
    spyOn(appProvider, 'getServicesInfo').and.returnValue(Promise.resolve({}));
    await appProvider.load();
    const fixture = TestBed.createComponent(components[0]);
    return {
      fixture,
      instance: fixture.debugElement.componentInstance,
      testBed: TestBed
    };
  }
  
  public static configureProviderTestingModule(
    providerOverride: Array<{
      provider;
      useClass?;
      useValue?;
      useFactory?: (...args) => any;
    }> = []
  ) {
    return TestBed.configureTestingModule({
      imports: [...baseImports, ProvidersModule],
      providers: [...baseProviders, ...providerOverrides]
    });
  }
  
  public static eventFire(el, etype: string): void {
    if (el.fireEvent) {
      el.fireEvent('on' + etype);
    } else {
      const evObj = document.createEvent('Events');
      evObj.initEvent(etype, true, false);
      el.dispatchEvent(evObj);
    }
  }
}

copay's People

Contributors

takagotch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.