725 lines
10 KiB
Plaintext
725 lines
10 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`es5.js - flow-verify 1`] = `
|
|
function send_single_email(
|
|
app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to
|
|
) {
|
|
send_single_email_implementation( app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to);
|
|
return "nothing";
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
function send_single_email(
|
|
app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to
|
|
) {
|
|
send_single_email_implementation(
|
|
app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to
|
|
);
|
|
return "nothing";
|
|
}
|
|
|
|
`;
|
|
|
|
exports[`es5.js - flow-verify 2`] = `
|
|
function send_single_email(
|
|
app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to
|
|
) {
|
|
send_single_email_implementation( app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to);
|
|
return "nothing";
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
function send_single_email(
|
|
app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to,
|
|
) {
|
|
send_single_email_implementation(
|
|
app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to,
|
|
);
|
|
return "nothing";
|
|
}
|
|
|
|
`;
|
|
|
|
exports[`es5.js - flow-verify 3`] = `
|
|
function send_single_email(
|
|
app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to
|
|
) {
|
|
send_single_email_implementation( app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to);
|
|
return "nothing";
|
|
}
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
function send_single_email(
|
|
app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to
|
|
) {
|
|
send_single_email_implementation(
|
|
app,
|
|
email_id,
|
|
email_address,
|
|
subject,
|
|
html,
|
|
reply_to
|
|
);
|
|
return "nothing";
|
|
}
|
|
|
|
`;
|
|
|
|
exports[`function-calls.js - flow-verify 1`] = `
|
|
const a = (param1, param2, param3) => {}
|
|
|
|
a('value', 'value2', 'value3');
|
|
|
|
a(
|
|
'a-long-value',
|
|
'a-really-really-long-value',
|
|
'a-really-really-really-long-value',
|
|
);
|
|
|
|
a('value', 'value2', a('long-nested-value', 'long-nested-value2', 'long-nested-value3'));
|
|
|
|
a.b().c(
|
|
{
|
|
d,
|
|
},
|
|
() => {}
|
|
);
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const a = (param1, param2, param3) => {};
|
|
|
|
a("value", "value2", "value3");
|
|
|
|
a(
|
|
"a-long-value",
|
|
"a-really-really-long-value",
|
|
"a-really-really-really-long-value"
|
|
);
|
|
|
|
a(
|
|
"value",
|
|
"value2",
|
|
a("long-nested-value", "long-nested-value2", "long-nested-value3")
|
|
);
|
|
|
|
a.b().c(
|
|
{
|
|
d
|
|
},
|
|
() => {}
|
|
);
|
|
|
|
`;
|
|
|
|
exports[`function-calls.js - flow-verify 2`] = `
|
|
const a = (param1, param2, param3) => {}
|
|
|
|
a('value', 'value2', 'value3');
|
|
|
|
a(
|
|
'a-long-value',
|
|
'a-really-really-long-value',
|
|
'a-really-really-really-long-value',
|
|
);
|
|
|
|
a('value', 'value2', a('long-nested-value', 'long-nested-value2', 'long-nested-value3'));
|
|
|
|
a.b().c(
|
|
{
|
|
d,
|
|
},
|
|
() => {}
|
|
);
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const a = (param1, param2, param3) => {};
|
|
|
|
a("value", "value2", "value3");
|
|
|
|
a(
|
|
"a-long-value",
|
|
"a-really-really-long-value",
|
|
"a-really-really-really-long-value",
|
|
);
|
|
|
|
a(
|
|
"value",
|
|
"value2",
|
|
a("long-nested-value", "long-nested-value2", "long-nested-value3"),
|
|
);
|
|
|
|
a.b().c(
|
|
{
|
|
d,
|
|
},
|
|
() => {},
|
|
);
|
|
|
|
`;
|
|
|
|
exports[`function-calls.js - flow-verify 3`] = `
|
|
const a = (param1, param2, param3) => {}
|
|
|
|
a('value', 'value2', 'value3');
|
|
|
|
a(
|
|
'a-long-value',
|
|
'a-really-really-long-value',
|
|
'a-really-really-really-long-value',
|
|
);
|
|
|
|
a('value', 'value2', a('long-nested-value', 'long-nested-value2', 'long-nested-value3'));
|
|
|
|
a.b().c(
|
|
{
|
|
d,
|
|
},
|
|
() => {}
|
|
);
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const a = (param1, param2, param3) => {};
|
|
|
|
a("value", "value2", "value3");
|
|
|
|
a(
|
|
"a-long-value",
|
|
"a-really-really-long-value",
|
|
"a-really-really-really-long-value"
|
|
);
|
|
|
|
a(
|
|
"value",
|
|
"value2",
|
|
a("long-nested-value", "long-nested-value2", "long-nested-value3")
|
|
);
|
|
|
|
a.b().c(
|
|
{
|
|
d,
|
|
},
|
|
() => {}
|
|
);
|
|
|
|
`;
|
|
|
|
exports[`jsx.js - flow-verify 1`] = `
|
|
<div
|
|
onClick={() =>
|
|
doSomething({
|
|
foo: bar
|
|
})
|
|
}
|
|
/>;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<div
|
|
onClick={() =>
|
|
doSomething({
|
|
foo: bar
|
|
})
|
|
}
|
|
/>;
|
|
|
|
`;
|
|
|
|
exports[`jsx.js - flow-verify 2`] = `
|
|
<div
|
|
onClick={() =>
|
|
doSomething({
|
|
foo: bar
|
|
})
|
|
}
|
|
/>;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<div
|
|
onClick={() =>
|
|
doSomething({
|
|
foo: bar,
|
|
})
|
|
}
|
|
/>;
|
|
|
|
`;
|
|
|
|
exports[`jsx.js - flow-verify 3`] = `
|
|
<div
|
|
onClick={() =>
|
|
doSomething({
|
|
foo: bar
|
|
})
|
|
}
|
|
/>;
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<div
|
|
onClick={() =>
|
|
doSomething({
|
|
foo: bar,
|
|
})
|
|
}
|
|
/>;
|
|
|
|
`;
|
|
|
|
exports[`object.js - flow-verify 1`] = `
|
|
const a = {
|
|
b: true,
|
|
c: {
|
|
c1: 'hello'
|
|
},
|
|
d: false
|
|
};
|
|
|
|
const aLong = {
|
|
bHasALongName: 'a-long-value',
|
|
cHasALongName: {
|
|
c1: 'a-really-long-value',
|
|
c2: 'a-really-really-long-value',
|
|
},
|
|
dHasALongName: 'a-long-value-too'
|
|
};
|
|
|
|
const aLong = {
|
|
dHasALongName: 'a-long-value-too',
|
|
eHasABooleanExpression: a === a,
|
|
};
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const a = {
|
|
b: true,
|
|
c: {
|
|
c1: "hello"
|
|
},
|
|
d: false
|
|
};
|
|
|
|
const aLong = {
|
|
bHasALongName: "a-long-value",
|
|
cHasALongName: {
|
|
c1: "a-really-long-value",
|
|
c2: "a-really-really-long-value"
|
|
},
|
|
dHasALongName: "a-long-value-too"
|
|
};
|
|
|
|
const aLong = {
|
|
dHasALongName: "a-long-value-too",
|
|
eHasABooleanExpression: a === a
|
|
};
|
|
|
|
`;
|
|
|
|
exports[`object.js - flow-verify 2`] = `
|
|
const a = {
|
|
b: true,
|
|
c: {
|
|
c1: 'hello'
|
|
},
|
|
d: false
|
|
};
|
|
|
|
const aLong = {
|
|
bHasALongName: 'a-long-value',
|
|
cHasALongName: {
|
|
c1: 'a-really-long-value',
|
|
c2: 'a-really-really-long-value',
|
|
},
|
|
dHasALongName: 'a-long-value-too'
|
|
};
|
|
|
|
const aLong = {
|
|
dHasALongName: 'a-long-value-too',
|
|
eHasABooleanExpression: a === a,
|
|
};
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const a = {
|
|
b: true,
|
|
c: {
|
|
c1: "hello",
|
|
},
|
|
d: false,
|
|
};
|
|
|
|
const aLong = {
|
|
bHasALongName: "a-long-value",
|
|
cHasALongName: {
|
|
c1: "a-really-long-value",
|
|
c2: "a-really-really-long-value",
|
|
},
|
|
dHasALongName: "a-long-value-too",
|
|
};
|
|
|
|
const aLong = {
|
|
dHasALongName: "a-long-value-too",
|
|
eHasABooleanExpression: a === a,
|
|
};
|
|
|
|
`;
|
|
|
|
exports[`object.js - flow-verify 3`] = `
|
|
const a = {
|
|
b: true,
|
|
c: {
|
|
c1: 'hello'
|
|
},
|
|
d: false
|
|
};
|
|
|
|
const aLong = {
|
|
bHasALongName: 'a-long-value',
|
|
cHasALongName: {
|
|
c1: 'a-really-long-value',
|
|
c2: 'a-really-really-long-value',
|
|
},
|
|
dHasALongName: 'a-long-value-too'
|
|
};
|
|
|
|
const aLong = {
|
|
dHasALongName: 'a-long-value-too',
|
|
eHasABooleanExpression: a === a,
|
|
};
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
const a = {
|
|
b: true,
|
|
c: {
|
|
c1: "hello",
|
|
},
|
|
d: false,
|
|
};
|
|
|
|
const aLong = {
|
|
bHasALongName: "a-long-value",
|
|
cHasALongName: {
|
|
c1: "a-really-long-value",
|
|
c2: "a-really-really-long-value",
|
|
},
|
|
dHasALongName: "a-long-value-too",
|
|
};
|
|
|
|
const aLong = {
|
|
dHasALongName: "a-long-value-too",
|
|
eHasABooleanExpression: a === a,
|
|
};
|
|
|
|
`;
|
|
|
|
exports[`trailing_whitespace.js - flow-verify 1`] = `
|
|
let example = [
|
|
'FOO',
|
|
'BAR',
|
|
// Comment
|
|
];
|
|
|
|
foo({},
|
|
// Comment
|
|
);
|
|
|
|
o = {
|
|
state,
|
|
// Comment
|
|
};
|
|
|
|
o = {
|
|
state,
|
|
|
|
// Comment
|
|
};
|
|
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB
|
|
// Comment
|
|
) {
|
|
a
|
|
}
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB,
|
|
// Comment
|
|
) {
|
|
a
|
|
}
|
|
|
|
this.getAttribute(function(s)
|
|
/*string*/ {
|
|
console.log()
|
|
});
|
|
this.getAttribute(function(s) /*string*/ {
|
|
console.log()
|
|
});
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
let example = [
|
|
"FOO",
|
|
"BAR"
|
|
// Comment
|
|
];
|
|
|
|
foo(
|
|
{}
|
|
// Comment
|
|
);
|
|
|
|
o = {
|
|
state
|
|
// Comment
|
|
};
|
|
|
|
o = {
|
|
state
|
|
|
|
// Comment
|
|
};
|
|
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB
|
|
// Comment
|
|
) {
|
|
a;
|
|
}
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB
|
|
// Comment
|
|
) {
|
|
a;
|
|
}
|
|
|
|
this.getAttribute(function(s) /*string*/ {
|
|
console.log();
|
|
});
|
|
this.getAttribute(function(s) /*string*/ {
|
|
console.log();
|
|
});
|
|
|
|
`;
|
|
|
|
exports[`trailing_whitespace.js - flow-verify 2`] = `
|
|
let example = [
|
|
'FOO',
|
|
'BAR',
|
|
// Comment
|
|
];
|
|
|
|
foo({},
|
|
// Comment
|
|
);
|
|
|
|
o = {
|
|
state,
|
|
// Comment
|
|
};
|
|
|
|
o = {
|
|
state,
|
|
|
|
// Comment
|
|
};
|
|
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB
|
|
// Comment
|
|
) {
|
|
a
|
|
}
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB,
|
|
// Comment
|
|
) {
|
|
a
|
|
}
|
|
|
|
this.getAttribute(function(s)
|
|
/*string*/ {
|
|
console.log()
|
|
});
|
|
this.getAttribute(function(s) /*string*/ {
|
|
console.log()
|
|
});
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
let example = [
|
|
"FOO",
|
|
"BAR",
|
|
// Comment
|
|
];
|
|
|
|
foo(
|
|
{},
|
|
// Comment
|
|
);
|
|
|
|
o = {
|
|
state,
|
|
// Comment
|
|
};
|
|
|
|
o = {
|
|
state,
|
|
|
|
// Comment
|
|
};
|
|
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB,
|
|
// Comment
|
|
) {
|
|
a;
|
|
}
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB,
|
|
// Comment
|
|
) {
|
|
a;
|
|
}
|
|
|
|
this.getAttribute(function(s) /*string*/ {
|
|
console.log();
|
|
});
|
|
this.getAttribute(function(s) /*string*/ {
|
|
console.log();
|
|
});
|
|
|
|
`;
|
|
|
|
exports[`trailing_whitespace.js - flow-verify 3`] = `
|
|
let example = [
|
|
'FOO',
|
|
'BAR',
|
|
// Comment
|
|
];
|
|
|
|
foo({},
|
|
// Comment
|
|
);
|
|
|
|
o = {
|
|
state,
|
|
// Comment
|
|
};
|
|
|
|
o = {
|
|
state,
|
|
|
|
// Comment
|
|
};
|
|
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB
|
|
// Comment
|
|
) {
|
|
a
|
|
}
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB,
|
|
// Comment
|
|
) {
|
|
a
|
|
}
|
|
|
|
this.getAttribute(function(s)
|
|
/*string*/ {
|
|
console.log()
|
|
});
|
|
this.getAttribute(function(s) /*string*/ {
|
|
console.log()
|
|
});
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
let example = [
|
|
"FOO",
|
|
"BAR",
|
|
// Comment
|
|
];
|
|
|
|
foo(
|
|
{}
|
|
// Comment
|
|
);
|
|
|
|
o = {
|
|
state,
|
|
// Comment
|
|
};
|
|
|
|
o = {
|
|
state,
|
|
|
|
// Comment
|
|
};
|
|
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB
|
|
// Comment
|
|
) {
|
|
a;
|
|
}
|
|
function supersupersupersuperLongF(
|
|
supersupersupersuperLongA,
|
|
supersupersupersuperLongB
|
|
// Comment
|
|
) {
|
|
a;
|
|
}
|
|
|
|
this.getAttribute(function(s) /*string*/ {
|
|
console.log();
|
|
});
|
|
this.getAttribute(function(s) /*string*/ {
|
|
console.log();
|
|
});
|
|
|
|
`;
|