2017-03-20 19:35:30 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2017-03-22 03:38:28 +03:00
|
|
|
exports[`break.js 1`] = `
|
2017-04-12 23:41:51 +03:00
|
|
|
var X = {
|
2017-03-20 19:35:30 +03:00
|
|
|
perform: function<
|
|
|
|
A, B, C, D, E, F, G,
|
|
|
|
T: (a: A, b: B, c: C, d: D, e: E, f: F) => G // eslint-disable-line space-before-function-paren
|
|
|
|
>(
|
|
|
|
method: T, scope: any,
|
|
|
|
a: A, b: B, c: C, d: D, e: E, f: F,
|
|
|
|
): G {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
var X = {
|
|
|
|
perform: function<
|
|
|
|
A,
|
|
|
|
B,
|
|
|
|
C,
|
|
|
|
D,
|
|
|
|
E,
|
|
|
|
F,
|
|
|
|
G,
|
|
|
|
T: (a: A, b: B, c: C, d: D, e: E, f: F) => G // eslint-disable-line space-before-function-paren
|
|
|
|
>(method: T, scope: any, a: A, b: B, c: C, d: D, e: E, f: F): G {}
|
|
|
|
};
|
2017-04-12 23:41:51 +03:00
|
|
|
|
2017-03-20 19:35:30 +03:00
|
|
|
`;
|
2017-04-21 23:57:21 +03:00
|
|
|
|
|
|
|
exports[`break.js 2`] = `
|
|
|
|
var X = {
|
|
|
|
perform: function<
|
|
|
|
A, B, C, D, E, F, G,
|
|
|
|
T: (a: A, b: B, c: C, d: D, e: E, f: F) => G // eslint-disable-line space-before-function-paren
|
|
|
|
>(
|
|
|
|
method: T, scope: any,
|
|
|
|
a: A, b: B, c: C, d: D, e: E, f: F,
|
|
|
|
): G {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
var X = {
|
|
|
|
perform: function<
|
|
|
|
A,
|
|
|
|
B,
|
|
|
|
C,
|
|
|
|
D,
|
|
|
|
E,
|
|
|
|
F,
|
|
|
|
G,
|
|
|
|
T: (a: A, b: B, c: C, d: D, e: E, f: F) => G, // eslint-disable-line space-before-function-paren
|
|
|
|
>(method: T, scope: any, a: A, b: B, c: C, d: D, e: E, f: F): G {},
|
|
|
|
};
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
2017-05-23 01:31:53 +03:00
|
|
|
exports[`generic.js 1`] = `
|
|
|
|
const identity = <T>(t: T): T => t;
|
|
|
|
const a = 1;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
const identity = <T>(t: T): T => t;
|
|
|
|
const a = 1;
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`generic.js 2`] = `
|
|
|
|
const identity = <T>(t: T): T => t;
|
|
|
|
const a = 1;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
const identity = <T>(t: T): T => t;
|
|
|
|
const a = 1;
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
2017-04-26 19:27:06 +03:00
|
|
|
exports[`nullable.js 1`] = `
|
|
|
|
function formatEntireFile(
|
|
|
|
fileVersion: FileVersion,
|
|
|
|
range: atom$Range,
|
|
|
|
): Promise<?{
|
|
|
|
newCursor?: number,
|
|
|
|
formatted: string,
|
|
|
|
}> {}
|
|
|
|
|
|
|
|
function foo(): Promise<?boolean> {}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
function formatEntireFile(
|
|
|
|
fileVersion: FileVersion,
|
|
|
|
range: atom$Range
|
|
|
|
): Promise<?{
|
|
|
|
newCursor?: number,
|
|
|
|
formatted: string
|
|
|
|
}> {}
|
|
|
|
|
|
|
|
function foo(): Promise<?boolean> {}
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`nullable.js 2`] = `
|
|
|
|
function formatEntireFile(
|
|
|
|
fileVersion: FileVersion,
|
|
|
|
range: atom$Range,
|
|
|
|
): Promise<?{
|
|
|
|
newCursor?: number,
|
|
|
|
formatted: string,
|
|
|
|
}> {}
|
|
|
|
|
|
|
|
function foo(): Promise<?boolean> {}
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
function formatEntireFile(
|
|
|
|
fileVersion: FileVersion,
|
|
|
|
range: atom$Range,
|
|
|
|
): Promise<?{
|
|
|
|
newCursor?: number,
|
|
|
|
formatted: string,
|
|
|
|
}> {}
|
|
|
|
|
|
|
|
function foo(): Promise<?boolean> {}
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
2017-04-21 23:57:21 +03:00
|
|
|
exports[`trailing.js 1`] = `
|
|
|
|
type State = {
|
|
|
|
errors: Immutable.Map<
|
|
|
|
Ahohohhohohohohohohohohohohooh,
|
|
|
|
Fbt | Immutable.Map<ErrorIndex, Fbt>
|
|
|
|
>,
|
|
|
|
shouldValidate: boolean,
|
|
|
|
};
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
type State = {
|
|
|
|
errors: Immutable.Map<
|
|
|
|
Ahohohhohohohohohohohohohohooh,
|
|
|
|
Fbt | Immutable.Map<ErrorIndex, Fbt>
|
|
|
|
>,
|
|
|
|
shouldValidate: boolean
|
|
|
|
};
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`trailing.js 2`] = `
|
|
|
|
type State = {
|
|
|
|
errors: Immutable.Map<
|
|
|
|
Ahohohhohohohohohohohohohohooh,
|
|
|
|
Fbt | Immutable.Map<ErrorIndex, Fbt>
|
|
|
|
>,
|
|
|
|
shouldValidate: boolean,
|
|
|
|
};
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
type State = {
|
|
|
|
errors: Immutable.Map<
|
|
|
|
Ahohohhohohohohohohohohohohooh,
|
|
|
|
Fbt | Immutable.Map<ErrorIndex, Fbt>,
|
|
|
|
>,
|
|
|
|
shouldValidate: boolean,
|
|
|
|
};
|
|
|
|
|
|
|
|
`;
|
2017-05-05 05:06:30 +03:00
|
|
|
|
|
|
|
exports[`union.js 1`] = `
|
|
|
|
type Foo = Promise<
|
|
|
|
{ ok: true, bar: string, baz: SomeOtherLongType } |
|
|
|
|
{ ok: false, bar: SomeOtherLongType }
|
|
|
|
>;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
type Foo = Promise<
|
|
|
|
| { ok: true, bar: string, baz: SomeOtherLongType }
|
|
|
|
| { ok: false, bar: SomeOtherLongType }
|
|
|
|
>;
|
|
|
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`union.js 2`] = `
|
|
|
|
type Foo = Promise<
|
|
|
|
{ ok: true, bar: string, baz: SomeOtherLongType } |
|
|
|
|
{ ok: false, bar: SomeOtherLongType }
|
|
|
|
>;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
type Foo = Promise<
|
|
|
|
| { ok: true, bar: string, baz: SomeOtherLongType }
|
|
|
|
| { ok: false, bar: SomeOtherLongType },
|
|
|
|
>;
|
|
|
|
|
|
|
|
`;
|