How to use the @scion/workbench-application-platform.api.parseMessageEnvelopeElseNull function in @scion/workbench-application-platform

To help you get started, we’ve selected a few @scion/workbench-application-platform examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application-platform / src / lib / spec / message-envelope.spec.ts View on Github external
it('should have a channel defined', () => {
    expect(parseMessageEnvelopeElseNull({message: {}})).toBeNull();
    expect(parseMessageEnvelopeElseNull({protocol: PROTOCOL, channel: null, message: {}})).toBeNull();
  });
});
github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application-platform / src / lib / spec / message-envelope.spec.ts View on Github external
it('must not be null or undefined', () => {
    expect(parseMessageEnvelopeElseNull(null)).toBeNull();
    expect(parseMessageEnvelopeElseNull(undefined)).toBeNull();
  });
github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application-platform / src / lib / spec / message-envelope.spec.ts View on Github external
it('must not be null or undefined', () => {
    expect(parseMessageEnvelopeElseNull(null)).toBeNull();
    expect(parseMessageEnvelopeElseNull(undefined)).toBeNull();
  });
github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application-platform / src / lib / spec / message-envelope.spec.ts View on Github external
it('must be an object', () => {
    expect(parseMessageEnvelopeElseNull('')).toBeNull();
    expect(parseMessageEnvelopeElseNull(true)).toBeNull();
    expect(parseMessageEnvelopeElseNull(42)).toBeNull();
    expect(parseMessageEnvelopeElseNull(() => {
    })).toBeNull();
  });
github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application-platform / src / lib / spec / message-envelope.spec.ts View on Github external
it('must be an object', () => {
    expect(parseMessageEnvelopeElseNull('')).toBeNull();
    expect(parseMessageEnvelopeElseNull(true)).toBeNull();
    expect(parseMessageEnvelopeElseNull(42)).toBeNull();
    expect(parseMessageEnvelopeElseNull(() => {
    })).toBeNull();
  });
github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application-platform / src / lib / spec / message-envelope.spec.ts View on Github external
it('must be an object', () => {
    expect(parseMessageEnvelopeElseNull('')).toBeNull();
    expect(parseMessageEnvelopeElseNull(true)).toBeNull();
    expect(parseMessageEnvelopeElseNull(42)).toBeNull();
    expect(parseMessageEnvelopeElseNull(() => {
    })).toBeNull();
  });
github SchweizerischeBundesbahnen / scion-workbench / projects / scion / workbench-application-platform / src / lib / core / app-outlet.directive.ts View on Github external
.subscribe((data: any) => {
        const envelope = parseMessageEnvelopeElseNull(data);
        if (!envelope) {
          return;
        }
        this._zone.run(() => this.dispatchMessageFromSite(envelope));
      });
  }

@scion/workbench-application-platform

SCION Workbench Application Platform is an extension of SCION Workbench to integrate content from multiple web applications in a coherent way, thus enabling a micro frontend architecture for allowing different front-end frameworks to co-exist and independ

EPL-2.0
Latest version published 4 years ago

Package Health Score

54 / 100
Full package analysis

Popular @scion/workbench-application-platform functions