123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`binary.js 1`] = `
- (class {}) + 1;
- (class a {}) + 1;
- (class extends b {}) + 1;
- (class a extends b {}) + 1;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (class {} + 1);
- (class a {} + 1);
- (class extends b {} + 1);
- (class a extends b {} + 1);
- `;
- exports[`break.js 1`] = `
- class MyContractSelectionWidget extends React.Component<void, MyContractSelectionWidgetPropsType, void> implements SomethingLarge {
- method() {}
- }
- class DisplayObject
- extends utils.EventEmitter
- implements interaction_InteractiveTarget {
- }
- class DisplayObject extends utils.EventEmitter
- implements interaction_InteractiveTarget {
- }
- class DisplayObject extends utils.EventEmitter
- implements interaction_InteractiveTarget,
- somethingElse_SomeOtherThing,
- somethingElseAgain_RunningOutOfNames {
- }
- class DisplayObject extends utils.EventEmitter implements interaction_InteractiveTarget {}
- class Readable extends events.EventEmitter implements NodeJS_ReadableStream {}
- class InMemoryAppender extends log4javascript.Appender implements ICachedLogMessageProvider {}
- class Foo extends Immutable.Record({
- ipaddress: '',
- }) {
- ipaddress: string;
- }
- export class VisTimelineComponent
- implements AfterViewInit, OnChanges, OnDestroy {
- }
- export class VisTimelineComponent2
- implements AfterViewInit, OnChanges, OnDestroy, AndSomethingReallyReallyLong {
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- class MyContractSelectionWidget
- extends React.Component<void, MyContractSelectionWidgetPropsType, void>
- implements SomethingLarge {
- method() {}
- }
- class DisplayObject extends utils.EventEmitter
- implements interaction_InteractiveTarget {}
- class DisplayObject extends utils.EventEmitter
- implements interaction_InteractiveTarget {}
- class DisplayObject extends utils.EventEmitter
- implements
- interaction_InteractiveTarget,
- somethingElse_SomeOtherThing,
- somethingElseAgain_RunningOutOfNames {}
- class DisplayObject extends utils.EventEmitter
- implements interaction_InteractiveTarget {}
- class Readable extends events.EventEmitter implements NodeJS_ReadableStream {}
- class InMemoryAppender extends log4javascript.Appender
- implements ICachedLogMessageProvider {}
- class Foo extends Immutable.Record({
- ipaddress: ""
- }) {
- ipaddress: string;
- }
- export class VisTimelineComponent
- implements AfterViewInit, OnChanges, OnDestroy {}
- export class VisTimelineComponent2
- implements
- AfterViewInit,
- OnChanges,
- OnDestroy,
- AndSomethingReallyReallyLong {}
- `;
- exports[`call.js 1`] = `
- (class {})(class {});
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (class {}(class {}));
- `;
- exports[`empty.js 1`] = `
- class A {
- // comment
- }
- class A { // comment
- }
- class A {
- }
- class A {
- m() {}
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- class A {
- // comment
- }
- class A {
- // comment
- }
- class A {}
- class A {
- m() {}
- }
- `;
- exports[`member.js 1`] = `
- (class {})[1];
- (class {}).a;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- (class {}[1]);
- (class {}.a);
- `;
- exports[`method.js 1`] = `
- class C {
- name/*comment*/() {
- }
- };
- ({
- name/*comment*/() {
- }
- });
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- class C {
- name /*comment*/() {}
- }
- ({
- name /*comment*/() {}
- });
- `;
- exports[`property.js 1`] = `
- class A {
- foobar =
- // comment to break
- 1 +
- // comment to break again
- 2;
- }
- class B {
- someInstanceProperty = this.props.foofoofoofoofoofoo &&
- this.props.barbarbarbar;
-
- someInstanceProperty2 = { foo: this.props.foofoofoofoofoofoo &&
- this.props.barbarbarbar };
-
- someInstanceProperty3 =
- "foo";
- }
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- class A {
- foobar =
- // comment to break
- 1 +
- // comment to break again
- 2;
- }
- class B {
- someInstanceProperty =
- this.props.foofoofoofoofoofoo && this.props.barbarbarbar;
- someInstanceProperty2 = {
- foo: this.props.foofoofoofoofoofoo && this.props.barbarbarbar
- };
- someInstanceProperty3 = "foo";
- }
- `;
- exports[`ternary.js 1`] = `
- if (1) (class {}) ? 1 : 2;
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- if (1) (class {} ? 1 : 2);
- `;
|