2017-02-22 00:59:19 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`binary.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
(class {}) + 1;
|
2017-01-23 01:33:04 +03:00
|
|
|
(class a {}) + 1;
|
|
|
|
(class extends b {}) + 1;
|
|
|
|
(class a extends b {}) + 1;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-03-08 05:53:42 +03:00
|
|
|
(class {} + 1);
|
|
|
|
(class a {} + 1);
|
|
|
|
(class extends b {} + 1);
|
|
|
|
(class a extends b {} + 1);
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-01-23 01:33:04 +03:00
|
|
|
`;
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`break.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
class MyContractSelectionWidget extends React.Component<void, MyContractSelectionWidgetPropsType, void> implements SomethingLarge {
|
2017-01-26 00:36:55 +03:00
|
|
|
method() {}
|
|
|
|
}
|
2017-05-26 02:26:56 +03:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
2017-05-30 19:45:07 +03:00
|
|
|
|
|
|
|
export class VisTimelineComponent
|
|
|
|
implements AfterViewInit, OnChanges, OnDestroy {
|
|
|
|
}
|
|
|
|
export class VisTimelineComponent2
|
|
|
|
implements AfterViewInit, OnChanges, OnDestroy, AndSomethingReallyReallyLong {
|
|
|
|
}
|
2017-01-26 00:36:55 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-05-26 02:26:56 +03:00
|
|
|
class MyContractSelectionWidget extends React.Component<
|
|
|
|
void,
|
|
|
|
MyContractSelectionWidgetPropsType,
|
|
|
|
void
|
|
|
|
> implements SomethingLarge {
|
2017-01-26 00:36:55 +03:00
|
|
|
method() {}
|
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-05-26 02:26:56 +03:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2017-05-30 19:45:07 +03:00
|
|
|
export class VisTimelineComponent
|
|
|
|
implements AfterViewInit, OnChanges, OnDestroy {}
|
|
|
|
export class VisTimelineComponent2
|
|
|
|
implements AfterViewInit,
|
|
|
|
OnChanges,
|
|
|
|
OnDestroy,
|
|
|
|
AndSomethingReallyReallyLong {}
|
|
|
|
|
2017-01-26 00:36:55 +03:00
|
|
|
`;
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`call.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
(class {})(class {});
|
2017-01-23 03:22:49 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-03-08 05:53:42 +03:00
|
|
|
(class {}(class {}));
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-01-23 03:22:49 +03:00
|
|
|
`;
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`empty.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
class A {
|
2017-02-04 00:16:32 +03:00
|
|
|
// comment
|
|
|
|
}
|
|
|
|
|
|
|
|
class A { // comment
|
|
|
|
}
|
|
|
|
|
|
|
|
class A {
|
|
|
|
}
|
2017-02-16 04:52:54 +03:00
|
|
|
|
|
|
|
class A {
|
|
|
|
m() {}
|
|
|
|
}
|
2017-02-04 00:16:32 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class A {
|
|
|
|
// comment
|
|
|
|
}
|
|
|
|
|
2017-02-14 04:08:58 +03:00
|
|
|
class A {
|
|
|
|
// comment
|
2017-02-04 00:56:06 +03:00
|
|
|
}
|
2017-02-04 00:16:32 +03:00
|
|
|
|
|
|
|
class A {}
|
2017-02-16 04:52:54 +03:00
|
|
|
|
|
|
|
class A {
|
|
|
|
m() {}
|
|
|
|
}
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-02-04 00:16:32 +03:00
|
|
|
`;
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`member.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
(class {})[1];
|
2017-01-23 06:05:46 +03:00
|
|
|
(class {}).a;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-03-08 05:53:42 +03:00
|
|
|
(class {}[1]);
|
|
|
|
(class {}.a);
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-01-23 06:05:46 +03:00
|
|
|
`;
|
|
|
|
|
2017-06-17 15:22:39 +03:00
|
|
|
exports[`method.js 1`] = `
|
|
|
|
|
|
|
|
class C {
|
|
|
|
name/*comment*/() {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
({
|
|
|
|
name/*comment*/() {
|
|
|
|
}
|
|
|
|
});
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class C {
|
|
|
|
name /*comment*/() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
({
|
|
|
|
name /*comment*/() {}
|
|
|
|
});
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`ternary.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
if (1) (class {}) ? 1 : 2;
|
2017-01-23 07:32:17 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-03-08 05:53:42 +03:00
|
|
|
if (1) (class {} ? 1 : 2);
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-01-23 07:32:17 +03:00
|
|
|
`;
|