Upgrade jest to 22 (#4782)

* chore: upgrade Jest

* chore: update snapshots

* chore: lock down babel dependency using invalid syntax

* 2 args to test.skip

* use jest 22 for now

* Revert "2 args to test.skip"

This reverts commit 691fdc3f99e320f2303958f2b503f7b4c93fa455.

* remove snapshot name from matcher

* fix standalone tests skips
master
Simen Bekkhus 2018-07-03 08:06:29 +02:00 committed by Lucas Duailibe
parent 99c4e41fa1
commit 51b7c02e12
836 changed files with 5178 additions and 5029 deletions

View File

@ -34,5 +34,6 @@ module.exports = {
"prettier/local": "<rootDir>/tests_config/require_prettier.js",
"prettier/standalone": "<rootDir>/tests_config/require_standalone.js"
},
testEnvironment: "node",
transform: {}
};

View File

@ -14,7 +14,7 @@
"node": ">=6"
},
"dependencies": {
"@babel/code-frame": "7.0.0-beta.49",
"@babel/code-frame": "7.0.0-beta.46",
"@babel/parser": "7.0.0-beta.49",
"@glimmer/syntax": "0.30.3",
"camelcase": "4.1.0",
@ -37,7 +37,7 @@
"graphql": "0.13.2",
"html-tag-names": "1.1.2",
"ignore": "3.3.7",
"jest-docblock": "22.2.2",
"jest-docblock": "23.2.0",
"json-stable-stringify": "1.0.1",
"leven": "2.1.0",
"linguist-languages": "6.2.0",
@ -79,7 +79,7 @@
"eslint-plugin-prettier": "2.6.0",
"eslint-plugin-react": "7.7.0",
"execa": "0.10.0",
"jest": "21.1.0",
"jest": "22.4.4",
"mkdirp": "0.5.1",
"prettier": "1.13.7",
"prettylint": "1.0.0",
@ -95,11 +95,14 @@
"rollup-plugin-replace": "1.2.1",
"rollup-plugin-uglify": "3.0.0",
"shelljs": "0.8.1",
"snapshot-diff": "0.2.2",
"snapshot-diff": "0.4.0",
"strip-ansi": "4.0.0",
"tempy": "0.2.1",
"webpack": "3.12.0"
},
"resolutions": {
"@babel/code-frame": "7.0.0-beta.46"
},
"scripts": {
"prepublishOnly": "echo \"Error: must publish from dist/\" && exit 1",
"prepare-release": "yarn && yarn build && yarn test:dist",

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.component.ts 1`] = `
exports[`test.component.ts - typescript-verify 1`] = `
@Component({
selector: 'app-test',
template: \`<ul> <li>test</li>
@ -39,7 +39,7 @@ class TestComponent {}
`;
exports[`test.component.ts 2`] = `
exports[`test.component.ts - typescript-verify 2`] = `
@Component({
selector: 'app-test',
template: \`<ul> <li>test</li>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`multiple.js 1`] = `
exports[`multiple.js - flow-verify 1`] = `
[...a, ...b,];
[...a, ...b];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`empty.js 1`] = `
exports[`empty.js - flow-verify 1`] = `
const a = someVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeLong.Expression || [];
const a = someVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeryVeLong.Expression || {};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -11,7 +11,7 @@ const a =
`;
exports[`last.js 1`] = `
exports[`last.js - flow-verify 1`] = `
[,];
[,,];
[,,1,];
@ -24,7 +24,7 @@ exports[`last.js 1`] = `
`;
exports[`preserve_empty_lines.js 1`] = `
exports[`preserve_empty_lines.js - flow-verify 1`] = `
a = [
1,

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`arrow_call.js 1`] = `
exports[`arrow_call.js - flow-verify 1`] = `
const testResults = results.testResults.map(testResult =>
formatResult(testResult, formatter, reporter)
);
@ -95,7 +95,7 @@ const composition = (ViewComponent, ContainerComponent) =>
`;
exports[`arrow_call.js 2`] = `
exports[`arrow_call.js - flow-verify 2`] = `
const testResults = results.testResults.map(testResult =>
formatResult(testResult, formatter, reporter)
);
@ -190,7 +190,7 @@ const composition = (ViewComponent, ContainerComponent) =>
`;
exports[`arrow_call.js 3`] = `
exports[`arrow_call.js - flow-verify 3`] = `
const testResults = results.testResults.map(testResult =>
formatResult(testResult, formatter, reporter)
);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`arrow_function_expression.js 1`] = `
exports[`arrow_function_expression.js - babylon-verify 1`] = `
(a => {}).length
typeof (() => {});
export default (() => {})();
@ -76,7 +76,7 @@ a = b => {
`;
exports[`arrow_function_expression.js 2`] = `
exports[`arrow_function_expression.js - babylon-verify 2`] = `
(a => {}).length
typeof (() => {});
export default (() => {})();
@ -152,21 +152,21 @@ a = (b) => {
`;
exports[`block_like.js 1`] = `
exports[`block_like.js - babylon-verify 1`] = `
a = () => ({} = this);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a = () => ({} = this);
`;
exports[`block_like.js 2`] = `
exports[`block_like.js - babylon-verify 2`] = `
a = () => ({} = this);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a = () => ({} = this);
`;
exports[`call.js 1`] = `
exports[`call.js - babylon-verify 1`] = `
Seq(typeDef.interface.groups).forEach(group =>
Seq(group.members).forEach((member, memberName) =>
markdownDoc(
@ -339,7 +339,7 @@ fooooooooooooooooooooooooooooooooooooooooooooooooooo(action => next =>
`;
exports[`call.js 2`] = `
exports[`call.js - babylon-verify 2`] = `
Seq(typeDef.interface.groups).forEach(group =>
Seq(group.members).forEach((member, memberName) =>
markdownDoc(
@ -512,7 +512,7 @@ fooooooooooooooooooooooooooooooooooooooooooooooooooo((action) => (next) =>
`;
exports[`comment.js 1`] = `
exports[`comment.js - babylon-verify 1`] = `
/**
* Curried function that ends with a BEM CSS Selector
*
@ -577,7 +577,7 @@ export const bem = block =>
`;
exports[`comment.js 2`] = `
exports[`comment.js - babylon-verify 2`] = `
/**
* Curried function that ends with a BEM CSS Selector
*
@ -642,7 +642,7 @@ export const bem = (block) =>
`;
exports[`currying.js 1`] = `
exports[`currying.js - babylon-verify 1`] = `
const fn = b => c => d => {
return 3;
};
@ -681,7 +681,7 @@ const middleware = options => (req, res, next) => {
`;
exports[`currying.js 2`] = `
exports[`currying.js - babylon-verify 2`] = `
const fn = b => c => d => {
return 3;
};
@ -720,7 +720,7 @@ const middleware = (options) => (req, res, next) => {
`;
exports[`long-call-no-args.js 1`] = `
exports[`long-call-no-args.js - babylon-verify 1`] = `
veryLongCall(VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_LONG_CONSTANT, () => {})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
veryLongCall(
@ -730,7 +730,7 @@ veryLongCall(
`;
exports[`long-call-no-args.js 2`] = `
exports[`long-call-no-args.js - babylon-verify 2`] = `
veryLongCall(VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_VERY_LONG_CONSTANT, () => {})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
veryLongCall(
@ -740,7 +740,7 @@ veryLongCall(
`;
exports[`long-contents.js 1`] = `
exports[`long-contents.js - babylon-verify 1`] = `
const foo = () => {
expect(arg1, arg2, arg3).toEqual({message: 'test', messageType: 'SMS', status: 'Unknown', created: '11/01/2017 13:36'});
};
@ -756,7 +756,7 @@ const foo = () => {
`;
exports[`long-contents.js 2`] = `
exports[`long-contents.js - babylon-verify 2`] = `
const foo = () => {
expect(arg1, arg2, arg3).toEqual({message: 'test', messageType: 'SMS', status: 'Unknown', created: '11/01/2017 13:36'});
};
@ -772,7 +772,7 @@ const foo = () => {
`;
exports[`parens.js 1`] = `
exports[`parens.js - babylon-verify 1`] = `
promise.then(
(result) => result,
(err) => err
@ -812,7 +812,7 @@ foo(a => b, d);
`;
exports[`parens.js 2`] = `
exports[`parens.js - babylon-verify 2`] = `
promise.then(
(result) => result,
(err) => err
@ -852,7 +852,7 @@ foo((a) => b, d);
`;
exports[`short_body.js 1`] = `
exports[`short_body.js - babylon-verify 1`] = `
const initializeSnapshotState = (
testFile: Path,
update: boolean,
@ -869,7 +869,7 @@ const initializeSnapshotState = (
`;
exports[`short_body.js 2`] = `
exports[`short_body.js - babylon-verify 2`] = `
const initializeSnapshotState = (
testFile: Path,
update: boolean,
@ -886,14 +886,14 @@ const initializeSnapshotState = (
`;
exports[`type_params.js 1`] = `
exports[`type_params.js - babylon-verify 1`] = `
<T>(a) => { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<T>(a) => {};
`;
exports[`type_params.js 2`] = `
exports[`type_params.js - babylon-verify 2`] = `
<T>(a) => { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<T>(a) => {};

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`arrows-bind.js 1`] = `
exports[`arrows-bind.js - babylon-verify 1`] = `
a => ({}::b()\`\`[''].c++ && 0 ? 0 : 0);
(a => b)::c;
a::(b => c);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`binaryish.js 1`] = `
exports[`binaryish.js - flow-verify 1`] = `
const computedDescriptionLines = (showConfirm &&
descriptionLinesConfirming) ||
(focused && !loading && descriptionLinesFocused) ||
@ -21,7 +21,7 @@ computedDescriptionLines =
`;
exports[`sequence.js 1`] = `
exports[`sequence.js - flow-verify 1`] = `
for ((i = 0), (len = arr.length); i < len; i++) {
console.log(arr[i])
}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`assignment_comments.js 1`] = `
exports[`assignment_comments.js - flow-verify 1`] = `
fnString =
// Comment
'some' + 'long' + 'string';

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`assignment_expression.js 1`] = `
exports[`assignment_expression.js - flow-verify 1`] = `
this.size = this._origin = this._capacity = 0;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
this.size = this._origin = this._capacity = 0;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`async-iteration.js 1`] = `
exports[`async-iteration.js - flow-verify 1`] = `
async function * a() {
yield* b();
@ -24,7 +24,7 @@ class X {
`;
exports[`await_parse.js 1`] = `
exports[`await_parse.js - flow-verify 1`] = `
async function f() { (await f()).length }
async function g() {
invariant(
@ -61,7 +61,7 @@ async () => {
`;
exports[`conditional-expression.js 1`] = `
exports[`conditional-expression.js - flow-verify 1`] = `
async function f() {
const result = typeof fn === 'function' ? await fn() : null;
}
@ -92,7 +92,7 @@ async function f() {
`;
exports[`parens.js 1`] = `
exports[`parens.js - flow-verify 1`] = `
async function *f(){ await (yield x); }
async function f(){ await (() => {}); }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`literal.js 1`] = `
exports[`literal.js - babylon-verify 1`] = `
100n
9223372036854775807n
0o16432n

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`arrow.js 1`] = `
exports[`arrow.js - flow-verify 1`] = `
function f() {
const appEntitys = getAppEntitys(loadObject).filter(
entity => entity && entity.isInstallAvailable() && !entity.isQueue() && entity.isDisabled()
@ -39,7 +39,7 @@ function f() {
`;
exports[`bitwise-flags.js 1`] = `
exports[`bitwise-flags.js - flow-verify 1`] = `
const FLAG_A = 1 << 0;
const FLAG_B = 1 << 1;
const FLAG_C = 1 << 2;
@ -54,7 +54,7 @@ const all = FLAG_A | FLAG_B | FLAG_C;
`;
exports[`comment.js 1`] = `
exports[`comment.js - flow-verify 1`] = `
a = (
// Commment 1
(Math.random() * (yRange * (1 - minVerticalFraction)))
@ -69,7 +69,7 @@ a =
`;
exports[`equality.js 1`] = `
exports[`equality.js - flow-verify 1`] = `
x == y == z;
x != y == z;
x == y != z;
@ -92,7 +92,7 @@ x !== y !== z;
`;
exports[`exp.js 1`] = `
exports[`exp.js - flow-verify 1`] = `
a ** b ** c;
(a ** b) ** c;
a.b ** c;
@ -113,7 +113,7 @@ a ** (b * c);
`;
exports[`if.js 1`] = `
exports[`if.js - flow-verify 1`] = `
if (this.hasPlugin("dynamicImports") && this.lookahead().type) {}
if (this.hasPlugin("dynamicImports") && this.lookahead().type === tt.parenLeft) {}
@ -145,7 +145,7 @@ if (
`;
exports[`inline-jsx.js 1`] = `
exports[`inline-jsx.js - flow-verify 1`] = `
const user = renderedUser || <div><User name={this.state.user.name} age={this.state.user.age} /></div>;
const user = renderedUser || shouldRenderUser && <div><User name={this.state.user.name} age={this.state.user.age} /></div>;
@ -176,7 +176,7 @@ const avatar = (hasAvatar || showPlaceholder) && (
`;
exports[`inline-object-array.js 1`] = `
exports[`inline-object-array.js - flow-verify 1`] = `
prevState = prevState || {
catalogs: [],
loadState: LOADED,
@ -363,7 +363,7 @@ const obj = {
`;
exports[`jsx_parent.js 1`] = `
exports[`jsx_parent.js - flow-verify 1`] = `
<div
src={
!isJellyfishEnabled &&
@ -441,7 +441,7 @@ exports[`jsx_parent.js 1`] = `
`;
exports[`math.js 1`] = `
exports[`math.js - flow-verify 1`] = `
x + y / z;
x / y + z;
@ -490,7 +490,7 @@ x & (y >> z);
`;
exports[`return.js 1`] = `
exports[`return.js - flow-verify 1`] = `
function foo() {
return this.hasPlugin("dynamicImports") && this.lookahead().type === tt.parenLeft.right;
}
@ -530,7 +530,7 @@ function foo() {
`;
exports[`short-right.js 1`] = `
exports[`short-right.js - flow-verify 1`] = `
this._cumulativeHeights &&
Math.abs(
this._cachedItemHeight(this._firstVisibleIndex + i) -
@ -570,7 +570,7 @@ defaultContent.filter(defaultLocale => {
`;
exports[`test.js 1`] = `
exports[`test.js - flow-verify 1`] = `
// It should always break the highest precedence operators first, and
// break them all at the same time.
@ -652,7 +652,7 @@ foo(
`;
exports[`unary.js 1`] = `
exports[`unary.js - flow-verify 1`] = `
const anyTestFailures = !(
aggregatedResults.numFailedTests === 0 &&
aggregatedResults.numRuntimeErrorTestSuites === 0

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`parens.js 1`] = `
exports[`parens.js - flow-verify 1`] = `
const result = (a + b) >>> 1;
var sizeIndex = ((index - 1) >>> level) & MASK;
var from = offset > left ? 0 : (left - offset) >> level;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`await.js 1`] = `
exports[`await.js - babylon-verify 1`] = `
const doBothThings = async () => {
const request = doAsyncThing();
return (await request)::doSyncThing();
@ -13,7 +13,7 @@ const doBothThings = async () => {
`;
exports[`await.js 2`] = `
exports[`await.js - babylon-verify 2`] = `
const doBothThings = async () => {
const request = doAsyncThing();
return (await request)::doSyncThing();
@ -26,7 +26,7 @@ const doBothThings = async () => {
`;
exports[`bind_parens.js 1`] = `
exports[`bind_parens.js - babylon-verify 1`] = `
(a || b)::c;
a || (b::c);
::obj.prop;
@ -37,7 +37,7 @@ a || b::c;
`;
exports[`bind_parens.js 2`] = `
exports[`bind_parens.js - babylon-verify 2`] = `
(a || b)::c;
a || (b::c);
::obj.prop;
@ -48,7 +48,7 @@ a || b::c
`;
exports[`long_name_method.js 1`] = `
exports[`long_name_method.js - babylon-verify 1`] = `
class X {
constructor() {
this.testLongNameMethodAndSomethingElseLallala = ::this.testLongNameMethodAndSomethingElseLallala;
@ -71,7 +71,7 @@ class X {
`;
exports[`long_name_method.js 2`] = `
exports[`long_name_method.js - babylon-verify 2`] = `
class X {
constructor() {
this.testLongNameMethodAndSomethingElseLallala = ::this.testLongNameMethodAndSomethingElseLallala;
@ -94,7 +94,7 @@ class X {
`;
exports[`method_chain.js 1`] = `
exports[`method_chain.js - babylon-verify 1`] = `
import {interval} from 'rxjs/observable/interval';
import {filter} from 'rxjs/operator/filter';
import {take} from 'rxjs/operator/take';
@ -133,7 +133,7 @@ function test(observable) {
`;
exports[`method_chain.js 2`] = `
exports[`method_chain.js - babylon-verify 2`] = `
import {interval} from 'rxjs/observable/interval';
import {filter} from 'rxjs/operator/filter';
import {take} from 'rxjs/operator/take';
@ -172,7 +172,7 @@ function test(observable) {
`;
exports[`short_name_method.js 1`] = `
exports[`short_name_method.js - babylon-verify 1`] = `
class X {
constructor() {
this.shortMethod = ::this.shortMethod;
@ -194,7 +194,7 @@ class X {
`;
exports[`short_name_method.js 2`] = `
exports[`short_name_method.js - babylon-verify 2`] = `
class X {
constructor() {
this.shortMethod = ::this.shortMethod;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`array.js 1`] = `
exports[`array.js - flow-verify 1`] = `
const arr1 = [1,2,3,4];
const arr2 = [1, 2, 3, 4];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -9,7 +9,7 @@ const arr2 = [1, 2, 3, 4];
`;
exports[`array.js 2`] = `
exports[`array.js - flow-verify 2`] = `
const arr1 = [1,2,3,4];
const arr2 = [1, 2, 3, 4];
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -18,7 +18,7 @@ const arr2 = [1, 2, 3, 4];
`;
exports[`object.js 1`] = `
exports[`object.js - flow-verify 1`] = `
const obj1 = {a:1, b:2, c:3}
const obj2 = { a:1, b:2, c:3 };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -27,7 +27,7 @@ const obj2 = { a: 1, b: 2, c: 3 };
`;
exports[`object.js 2`] = `
exports[`object.js - flow-verify 2`] = `
const obj1 = {a:1, b:2, c:3}
const obj2 = { a:1, b:2, c:3 };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`break.js 1`] = `
exports[`break.js - flow-verify 1`] = `
h(f(g(() => {
a
})))
@ -80,7 +80,7 @@ expect(
`;
exports[`parent.js 1`] = `
exports[`parent.js - flow-verify 1`] = `
runtimeAgent.getProperties(
objectId,
false, // ownProperties

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comments.js 1`] = `
exports[`comments.js - flow-verify 1`] = `
class A // comment 1
// comment 2
extends B {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`extends.js 1`] = `
exports[`extends.js - flow-verify 1`] = `
// "ArrowFunctionExpression"
class a extends (() => {}) {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`binary.js 1`] = `
exports[`binary.js - flow-verify 1`] = `
(class {}) + 1;
(class a {}) + 1;
(class extends b {}) + 1;
@ -13,7 +13,7 @@ exports[`binary.js 1`] = `
`;
exports[`break.js 1`] = `
exports[`break.js - flow-verify 1`] = `
class MyContractSelectionWidget extends React.Component<void, MyContractSelectionWidgetPropsType, void> implements SomethingLarge {
method() {}
}
@ -91,14 +91,14 @@ export class VisTimelineComponent2
`;
exports[`call.js 1`] = `
exports[`call.js - flow-verify 1`] = `
(class {})(class {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(class {}(class {}));
`;
exports[`empty.js 1`] = `
exports[`empty.js - flow-verify 1`] = `
class A {
// comment
}
@ -129,7 +129,7 @@ class A {
`;
exports[`member.js 1`] = `
exports[`member.js - flow-verify 1`] = `
(class {})[1];
(class {}).a;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -138,7 +138,7 @@ exports[`member.js 1`] = `
`;
exports[`method.js 1`] = `
exports[`method.js - flow-verify 1`] = `
class C {
name/*comment*/() {
@ -161,7 +161,7 @@ class C {
`;
exports[`property.js 1`] = `
exports[`property.js - flow-verify 1`] = `
class A {
foobar =
// comment to break
@ -202,7 +202,7 @@ class B {
`;
exports[`ternary.js 1`] = `
exports[`ternary.js - flow-verify 1`] = `
if (1) (class {}) ? 1 : 2;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
if (1) (class {} ? 1 : 2);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`private_fields.js 1`] = `
exports[`private_fields.js - babylon-verify 1`] = `
class A { #x; #y; }
class B { #x = 0; #y = 1; }
@ -87,7 +87,7 @@ class Point {
`;
exports[`private_fields.js 2`] = `
exports[`private_fields.js - babylon-verify 2`] = `
class A { #x; #y; }
class B { #x = 0; #y = 1; }
@ -174,7 +174,7 @@ class Point {
`;
exports[`with_comments.js 1`] = `
exports[`with_comments.js - babylon-verify 1`] = `
class A {
#foobar =
// comment to break
@ -193,7 +193,7 @@ class A {
`;
exports[`with_comments.js 2`] = `
exports[`with_comments.js - babylon-verify 2`] = `
class A {
#foobar =
// comment to break

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`assignment-pattern.js 1`] = `
exports[`assignment-pattern.js - flow-verify 1`] = `
const { a /* comment */ = 1 } = b;
const { c = 1 /* comment */ } = d;
@ -18,7 +18,7 @@ let {
`;
exports[`before-comma.js 1`] = `
exports[`before-comma.js - flow-verify 1`] = `
const foo = {
a: 'a' /* comment for this line */,
@ -35,7 +35,7 @@ const foo = {
`;
exports[`blank.js 1`] = `
exports[`blank.js - flow-verify 1`] = `
// This file only
// has comments. This comment
// should still exist
@ -82,7 +82,7 @@ exports[`blank.js 1`] = `
`;
exports[`break-continue-statements.js 1`] = `
exports[`break-continue-statements.js - flow-verify 1`] = `
for (;;) {
break /* comment */;
continue /* comment */;
@ -109,7 +109,7 @@ loop: for (;;) {
`;
exports[`call_comment.js 1`] = `
exports[`call_comment.js - flow-verify 1`] = `
render( // Warm any cache
<ChildUpdates renderAnchor={true} anchorClassOn={true} />,
container
@ -134,7 +134,7 @@ React.render(
`;
exports[`closure-compiler-type-cast.js 1`] = `
exports[`closure-compiler-type-cast.js - flow-verify 1`] = `
// test to make sure comments are attached correctly
let inlineComment = /* some comment */ (
someReallyLongFunctionCall(withLots, ofArguments));
@ -181,7 +181,7 @@ var newArray = /** @type {array} */ (numberOrString.map(x => x));
`;
exports[`dangling.js 1`] = `
exports[`dangling.js - flow-verify 1`] = `
var x = {/* dangling */};
var x = {
// dangling
@ -212,7 +212,7 @@ export /* dangling */{};
`;
exports[`dangling_array.js 1`] = `
exports[`dangling_array.js - flow-verify 1`] = `
expect(() => {}).toTriggerReadyStateChanges([
// Nothing.
]);
@ -227,7 +227,7 @@ expect(() => {}).toTriggerReadyStateChanges([
`;
exports[`dangling_for.js 1`] = `
exports[`dangling_for.js - flow-verify 1`] = `
for // comment
(;;);
@ -241,7 +241,7 @@ for (;;);
`;
exports[`dynamic_imports.js 1`] = `
exports[`dynamic_imports.js - flow-verify 1`] = `
import(/* Hello */ 'something')
import('something' /* Hello */)
@ -260,7 +260,7 @@ import("something" /* Hello */ + "else");
`;
exports[`export.js 1`] = `
exports[`export.js - flow-verify 1`] = `
export //comment
{}
@ -301,7 +301,7 @@ export {
`;
exports[`first-line.js 1`] = `
exports[`first-line.js - flow-verify 1`] = `
a // comment
b
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -310,7 +310,7 @@ b;
`;
exports[`flow_union.js 1`] = `
exports[`flow_union.js - flow-verify 1`] = `
type UploadState<E, EM, D>
// The upload hasnt begun yet
= {type: "Not_begun"}
@ -353,7 +353,7 @@ type UploadState<E, EM, D> =
`;
exports[`function-declaration.js 1`] = `
exports[`function-declaration.js - flow-verify 1`] = `
function a(/* comment */) {} // comment
function b() {} // comment
function c(/* comment */ argA, argB, argC) {} // comment
@ -440,7 +440,7 @@ class C {
`;
exports[`if.js 1`] = `
exports[`if.js - flow-verify 1`] = `
if (1)
// comment
{
@ -581,7 +581,7 @@ if (14) {
`;
exports[`issues.js 1`] = `
exports[`issues.js - flow-verify 1`] = `
// Does not need to break as it fits in 80 columns
this.call(a, /* comment */ b);
@ -805,7 +805,7 @@ foo(
`;
exports[`jsx.js 1`] = `
exports[`jsx.js - flow-verify 1`] = `
<div>
{
/* comment */
@ -1032,7 +1032,7 @@ onClick={() => {}}>
`;
exports[`last-arg.js 1`] = `
exports[`last-arg.js - flow-verify 1`] = `
type f = (
currentRequest: {a: number},
// TODO this is a very very very very long comment that makes it go > 80 columns
@ -1217,7 +1217,7 @@ class Foo {
`;
exports[`preserve-new-line-last.js 1`] = `
exports[`preserve-new-line-last.js - flow-verify 1`] = `
function f() {
a
/* eslint-disable */
@ -1264,7 +1264,7 @@ function name() {
`;
exports[`return-statement.js 1`] = `
exports[`return-statement.js - flow-verify 1`] = `
function jsx() {
return (
// Comment
@ -1519,7 +1519,7 @@ function inlineComment() {
`;
exports[`switch.js 1`] = `
exports[`switch.js - flow-verify 1`] = `
switch (node && node.type) {
case "Property":
case "MethodDefinition":
@ -1599,7 +1599,7 @@ switch (foo) {
`;
exports[`template-literal.js 1`] = `
exports[`template-literal.js - flow-verify 1`] = `
\`
\${a // comment
}
@ -1630,7 +1630,7 @@ d //comment
`;
exports[`trailing_space.js 1`] = `
exports[`trailing_space.js - flow-verify 1`] = `
#!/there/is-space-here->
// Do not trim trailing whitespace from this source file!
@ -1645,7 +1645,7 @@ exports[`trailing_space.js 1`] = `
`;
exports[`trailing-jsdocs.js 1`] = `
exports[`trailing-jsdocs.js - flow-verify 1`] = `
const CONNECTION_STATUS = exports.CONNECTION_STATUS = {
CLOSED: Object.freeze({ kind: 'CLOSED' }),
CONNECTED: Object.freeze({ kind: 'CONNECTED' }),
@ -1699,7 +1699,7 @@ const CONNECTION_STATUS = (exports.CONNECTION_STATUS = {
`;
exports[`try.js 1`] = `
exports[`try.js - flow-verify 1`] = `
// comment 1
try {
// comment 2
@ -1727,7 +1727,7 @@ try {
`;
exports[`variable_declarator.js 1`] = `
exports[`variable_declarator.js - flow-verify 1`] = `
let obj = // Comment
{
key: 'val'

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`jsx_same_line.js 1`] = `
exports[`jsx_same_line.js - flow-verify 1`] = `
<div
// comment
>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`classes.js 1`] = `
exports[`classes.js - flow-verify 1`] = `
class c {
["i"]() {}
}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comments.js 1`] = `
exports[`comments.js - flow-verify 1`] = `
var inspect = 4 === util.inspect.length
? // node <= 0.8.x
(function(v, colors) {
@ -82,7 +82,7 @@ const { configureStore } =
`;
exports[`new-expression.js 1`] = `
exports[`new-expression.js - flow-verify 1`] = `
const testConsole = new TestConsole(
config.useStderr ? process.stderr : process.stdout
);
@ -93,7 +93,7 @@ const testConsole = new TestConsole(
`;
exports[`no-confusing-arrow.js 1`] = `
exports[`no-confusing-arrow.js - flow-verify 1`] = `
// no-confusing-arrow
var x = a => 1 ? 2 : 3;
var x = a <= 1 ? 2 : 3;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`at-root.css 1`] = `
exports[`at-root.css - css-verify 1`] = `
.parent {
@at-root {
.child1 {
@ -472,7 +472,7 @@ red
`;
exports[`charset.css 1`] = `
exports[`charset.css - css-verify 1`] = `
@charset "UTF-8";
@charset "iso-8859-15";
@charset 'iso-8859-15'; /* Invalid, wrong quoting style used */
@ -489,7 +489,7 @@ exports[`charset.css 1`] = `
`;
exports[`counter-style.css 1`] = `
exports[`counter-style.css - css-verify 1`] = `
@counter-style identifier {
system: cyclic;
symbols: "\\1F44D";
@ -596,7 +596,7 @@ suffix
`;
exports[`custom-media.css 1`] = `
exports[`custom-media.css - css-verify 1`] = `
@custom-media --small-viewport (max-width: 30em);
@custom-media --small-viewport (max-width:30em);
@custom-media --small-viewport ( max-width : 30em ) ;
@ -725,7 +725,7 @@ max-width
`;
exports[`custom-selector.css 1`] = `
exports[`custom-selector.css - css-verify 1`] = `
@custom-selector :--heading h1, h2, h3, h4, h5, h6;
@custom-selector :--heading h1,h2,h3,h4,h5,h6;
@custom-selector :--heading h1 , h2 , h3 , h4 , h5 , h6 ;
@ -842,7 +842,7 @@ h6
`;
exports[`debug.css 1`] = `
exports[`debug.css - css-verify 1`] = `
@debug 10em + 12em;
@debug 10em+12em;
@debug 10em + 12em ;
@ -877,7 +877,7 @@ exports[`debug.css 1`] = `
`;
exports[`each.css 1`] = `
exports[`each.css - css-verify 1`] = `
@each $animal in puma, sea-slug, egret, salamander {}
@each $animal in puma,sea-slug,egret,salamander{}
@each $animal in puma , sea-slug , egret , salamander {}
@ -1165,7 +1165,7 @@ h3
`;
exports[`extend.css 1`] = `
exports[`extend.css - css-verify 1`] = `
.master {
color: black;
font-size: 12px;
@ -1416,7 +1416,7 @@ a.important {
`;
exports[`font-face.css 1`] = `
exports[`font-face.css - css-verify 1`] = `
@font-face {
font-family: "Open Sans";
src: url("/fonts/OpenSans-Regular-webfont.woff2") format("woff2"),
@ -1541,7 +1541,7 @@ format(
`;
exports[`font-feature-values.css 1`] = `
exports[`font-feature-values.css - css-verify 1`] = `
@font-feature-values Font One {
@styleset {
nice-style: 12;
@ -1629,7 +1629,7 @@ nice-style
`;
exports[`for.css 1`] = `
exports[`for.css - css-verify 1`] = `
@for $i from 1 through 8 {}
@for $i from 1 through 8{}
@for $i from 1 through 8 {}
@ -1732,7 +1732,7 @@ through
`;
exports[`function.css 1`] = `
exports[`function.css - css-verify 1`] = `
@function func($arg, $arg1, $arg2: 10, $args...) {
@return "Func";
}
@ -1858,7 +1858,7 @@ $args
`;
exports[`if-else.css 1`] = `
exports[`if-else.css - css-verify 1`] = `
@if $media == phonePortrait {
$k: .15625;
} @else if $media == phoneLandscape {
@ -2138,7 +2138,7 @@ p {
`;
exports[`import.css 1`] = `
exports[`import.css - css-verify 1`] = `
@import url("fineprint.css") print;
@import url("bluish.css") projection, tv;
@import 'custom.css';
@ -2315,7 +2315,7 @@ $family: unquote("Droid+Sans");
`;
exports[`include.css 1`] = `
exports[`include.css - css-verify 1`] = `
@include mix(1px, 2px, $arg2: 10, 2px 4px 6px);
@include mix(1px,2px,$arg2:10,2px 4px 6px);
@include mix ( 1px , 2px , $arg2 : 10 , 2px 4px 6px );
@ -2530,7 +2530,7 @@ a {
`;
exports[`keyframes.css 1`] = `
exports[`keyframes.css - css-verify 1`] = `
@keyframes identifier {
0% {
top: 0;
@ -2903,7 +2903,7 @@ margin-top: 100px;
`;
exports[`media.css 1`] = `
exports[`media.css - css-verify 1`] = `
@media screen and (min-width: 480px) {}
@media screen and (min-width: 480px) {}
@MEDIA screen and (min-width: 480px) {}
@ -3228,7 +3228,7 @@ black
`;
exports[`mixin.css 1`] = `
exports[`mixin.css - css-verify 1`] = `
@mixin clearfix {}
@mixin clearfix{}
@mixin clearfix {}
@ -3401,7 +3401,7 @@ $background
`;
exports[`namespaces.css 1`] = `
exports[`namespaces.css - css-verify 1`] = `
@namespace toto "http://toto.example.org";
@namespace toto url("http://toto.example.org");
@namespace toto "http://toto.example.org" ;
@ -3466,7 +3466,7 @@ url("http://example.com/foo/very/very/very/very/very/very/very/very/very/very/ve
`;
exports[`page.css 1`] = `
exports[`page.css - css-verify 1`] = `
@page {
margin: 1cm;
}
@ -3579,7 +3579,7 @@ margin
`;
exports[`return.css 1`] = `
exports[`return.css - css-verify 1`] = `
@function grid-width($n) {
@return $n * $grid-width + ($n - 1) * $gutter-width / 10;
}
@ -3758,7 +3758,7 @@ $gutter-width
`;
exports[`supports.css 1`] = `
exports[`supports.css - css-verify 1`] = `
@supports (transform-origin: 5% 5%) {}
@supports (transform-origin:5% 5%) {}
@supports ( transform-origin : 5% 5% ) {}
@ -4193,7 +4193,7 @@ run-in
`;
exports[`viewport.css 1`] = `
exports[`viewport.css - css-verify 1`] = `
@viewport {
min-width: 640px;
max-width: 800px;
@ -4281,7 +4281,7 @@ max-width
`;
exports[`while.css 1`] = `
exports[`while.css - css-verify 1`] = `
@while $i > 0 {}
@while $i>0{}
@while $i > 0 {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`custom-selector.css 1`] = `
exports[`custom-selector.css - css-verify 1`] = `
@custom-selector :--icon i[class^='icon-'], i[class*=' icon-'];
@custom-selector :--icon i[ class ^= 'icon-' ], i[ class *= ' icon-' ];
@custom-selector
@ -24,7 +24,7 @@ class
`;
exports[`custom-selector.css 2`] = `
exports[`custom-selector.css - css-verify 2`] = `
@custom-selector :--icon i[class^='icon-'], i[class*=' icon-'];
@custom-selector :--icon i[ class ^= 'icon-' ], i[ class *= ' icon-' ];
@custom-selector
@ -48,7 +48,7 @@ class
`;
exports[`insensitive.css 1`] = `
exports[`insensitive.css - css-verify 1`] = `
input[type="radio" i] {}
img[alt~="person" i][src*="lorem" i] {}
section:has(:not([type="radio" i], [type="checkbox" i])) {}
@ -62,7 +62,7 @@ section:has(:not([type="radio" i], [type="checkbox" i])) {
`;
exports[`insensitive.css 2`] = `
exports[`insensitive.css - css-verify 2`] = `
input[type="radio" i] {}
img[alt~="person" i][src*="lorem" i] {}
section:has(:not([type="radio" i], [type="checkbox" i])) {}
@ -76,7 +76,7 @@ section:has(:not([type='radio' i], [type='checkbox' i])) {
`;
exports[`namespaces.css 1`] = `
exports[`namespaces.css - css-verify 1`] = `
@namespace foo "http://www.example.com";
[foo|att=val] {}
[*|att] {}
@ -95,7 +95,7 @@ exports[`namespaces.css 1`] = `
`;
exports[`namespaces.css 2`] = `
exports[`namespaces.css - css-verify 2`] = `
@namespace foo "http://www.example.com";
[foo|att=val] {}
[*|att] {}
@ -114,7 +114,7 @@ exports[`namespaces.css 2`] = `
`;
exports[`quotes.css 1`] = `
exports[`quotes.css - css-verify 1`] = `
a[id=test] {}
a[id="test"] {}
a[id='test'] {}
@ -143,7 +143,7 @@ section:has(:not([type="radio"], [type="checkbox"])) {
`;
exports[`quotes.css 2`] = `
exports[`quotes.css - css-verify 2`] = `
a[id=test] {}
a[id="test"] {}
a[id='test'] {}
@ -172,7 +172,7 @@ section:has(:not([type='radio'], [type='checkbox'])) {
`;
exports[`spaces.css 1`] = `
exports[`spaces.css - css-verify 1`] = `
[lang] {}
[ lang] {}
[lang ] {}
@ -406,7 +406,7 @@ section:has(:not([type="radio" i], [type="checkbox" i])) {
`;
exports[`spaces.css 2`] = `
exports[`spaces.css - css-verify 2`] = `
[lang] {}
[ lang] {}
[lang ] {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`atword.css 1`] = `
exports[`atword.css - css-verify 1`] = `
.test { @color: red; color: @color; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.test {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`bom.css 1`] = `
exports[`bom.css - css-verify 1`] = `

/* Block comment */

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`case.css 1`] = `
exports[`case.css - css-verify 1`] = `
@custom-media --KeepName (MIN-WIDTH: 500PX);
.foo {
@ -130,7 +130,7 @@ x-panel {
`;
exports[`case.less 1`] = `
exports[`case.less - css-verify 1`] = `
// Convention in this test file:
// - The case should be preserved for things prefixed with "Keep".
// - The case should always be preserved for element names and attribute names
@ -439,7 +439,7 @@ table {
`;
exports[`case.scss 1`] = `
exports[`case.scss - css-verify 1`] = `
// Convention in this test file:
// - The case should be preserved for things prefixed with "Keep".
// - The case should always be preserved for element names and attribute names
@ -749,7 +749,7 @@ table {
`;
exports[`custom-selectors.css 1`] = `
exports[`custom-selectors.css - css-verify 1`] = `
@custom-selector :--camelCase .my-css-selector;
:--camelCase {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`character_escaping.css 1`] = `
exports[`character_escaping.css - css-verify 1`] = `
#♥ {}
#© {}
#“‘’” {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`colon.css 1`] = `
exports[`colon.css - css-verify 1`] = `
div {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`color-adjuster.css 1`] = `
exports[`color-adjuster.css - css-verify 1`] = `
.foo {
color: color(red l(+ 20%));
color: color(red w(+ 20%) s(+ 20%));
@ -250,7 +250,7 @@ exports[`color-adjuster.css 1`] = `
`;
exports[`current-color.css 1`] = `
exports[`current-color.css - css-verify 1`] = `
.foo {
border: 1px dashed currentColor;
border: 1px dashed currentcolor;
@ -263,7 +263,7 @@ exports[`current-color.css 1`] = `
`;
exports[`functional-syntax.css 1`] = `
exports[`functional-syntax.css - css-verify 1`] = `
.foo {
color: rgb(255, 0, 153);
color: rgb(100%, 0%, 60%);
@ -284,7 +284,7 @@ exports[`functional-syntax.css 1`] = `
`;
exports[`hexcolor.css 1`] = `
exports[`hexcolor.css - css-verify 1`] = `
.foo {
color: #AAA;
-o-color: #fabcd3;
@ -307,7 +307,7 @@ exports[`hexcolor.css 1`] = `
`;
exports[`whitespace-syntax.css 1`] = `
exports[`whitespace-syntax.css - css-verify 1`] = `
.foo {
color: rgba(51 170 51 / 0.4);
color: rgba(51 170 51 / 40%);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`combinator.css 1`] = `
exports[`combinator.css - css-verify 1`] = `
-Option/root .public/section ~ .public/section:before {
}
@ -33,7 +33,7 @@ exports[`combinator.css 1`] = `
`;
exports[`leading.css 1`] = `
exports[`leading.css - css-verify 1`] = `
a {
> * {
}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`CRLF.css 1`] = `
exports[`CRLF.css - css-verify 1`] = `
/*
* Comment 1
*/
@ -43,7 +43,7 @@ exports[`CRLF.css 1`] = `
`;
exports[`CRLF.less 1`] = `
exports[`CRLF.less - css-verify 1`] = `
@nice-blue: #5B83AD;
@light-blue: @nice-blue + #111;
@ -98,7 +98,7 @@ exports[`CRLF.less 1`] = `
`;
exports[`CRLF.scss 1`] = `
exports[`CRLF.scss - css-verify 1`] = `
$nice-blue: #5B83AD;
$light-blue: $nice-blue + #111;
@ -183,7 +183,7 @@ $light-blue: $nice-blue + #111;
`;
exports[`at-rules.css 1`] = `
exports[`at-rules.css - css-verify 1`] = `
@charset "utf-8"; /* comment 1 */
@import /* comment 2 */ url("fineprint.css") /* comment 3 */ print /* comment 4 */; /* comment 5 */
@ -392,7 +392,7 @@ exports[`at-rules.css 1`] = `
`;
exports[`block.css 1`] = `
exports[`block.css - css-verify 1`] = `
// Animation definitions cannot cross the shadow boundary,
// and thus need to be loaded directly into the atom-text-editor scope.
/* Kikoo */
@ -409,7 +409,7 @@ exports[`block.css 1`] = `
`;
exports[`bug.css 1`] = `
exports[`bug.css - css-verify 1`] = `
@font-face {
src: url(if(
$bootstrap-sass-asset-helper,
@ -438,7 +438,7 @@ exports[`bug.css 1`] = `
`;
exports[`declaration.css 1`] = `
exports[`declaration.css - css-verify 1`] = `
a {
/* comment 1 */
/* comment 2 */ padding /* comment 3 */ : /* comment 4 */ 10px /* comment 5 */ 10px /* comment 6 */; /* comment 7 */
@ -603,7 +603,7 @@ body {
`;
exports[`if-eslit-at-rule-decloration.scss 1`] = `
exports[`if-eslit-at-rule-decloration.scss - css-verify 1`] = `
@function _normalize-include($section) {
// Check if $section is in the $include list.
@if index($_normalize-include, $section) {
@ -633,7 +633,7 @@ exports[`if-eslit-at-rule-decloration.scss 1`] = `
`;
exports[`lists.scss 1`] = `
exports[`lists.scss - css-verify 1`] = `
$my-list:
'foo', // Foo
'bar'; // Bar
@ -644,7 +644,7 @@ $my-list: "foo",
`;
exports[`maps.scss 1`] = `
exports[`maps.scss - css-verify 1`] = `
$my-map: (
'foo': 1, // Foo
'bar': 2, // Bar
@ -659,7 +659,7 @@ $my-map: (
`;
exports[`places.css 1`] = `
exports[`places.css - css-verify 1`] = `
div {
// a
@ -681,7 +681,7 @@ div {
`;
exports[`prettier-ignore.css 1`] = `
exports[`prettier-ignore.css - css-verify 1`] = `
// prettier-ignore
@blue: blue;
@black: darkgray;
@ -704,7 +704,7 @@ foo {
`;
exports[`selectors.css 1`] = `
exports[`selectors.css - css-verify 1`] = `
.powerPathNavigator .helm button.pressedButton, /* comment 1 */
.powerPathNavigator .helm button:active:not(.disabledButton),
.powerPathNavigator table.powerPathInfo th:active,
@ -1102,7 +1102,7 @@ article /* comment 168 */ :--heading /* comment 169 */ + /* comment 170 */ p /*
`;
exports[`selectors.scss 1`] = `
exports[`selectors.scss - css-verify 1`] = `
.powerPathNavigator .helm button.pressedButton, // comment 1
.powerPathNavigator .helm button:active:not(.disabledButton),
.powerPathNavigator table.powerPathInfo th:active,
@ -1234,7 +1234,7 @@ exports[`selectors.scss 1`] = `
`;
exports[`source-map.css 1`] = `
exports[`source-map.css - css-verify 1`] = `
.foo {
color: red;
}
@ -1249,7 +1249,7 @@ exports[`source-map.css 1`] = `
`;
exports[`trailing_star_slash.css 1`] = `
exports[`trailing_star_slash.css - css-verify 1`] = `
@media (max-width: 1) {}
a {
// element.style */
@ -1263,7 +1263,7 @@ a {
`;
exports[`types.css 1`] = `
exports[`types.css - css-verify 1`] = `
/* This is a basic comment */
/* ==========================================================================
@ -1358,7 +1358,7 @@ span {
`;
exports[`variable-declaration.scss 1`] = `
exports[`variable-declaration.scss - css-verify 1`] = `
$var: /* comment 1 */ all /* comment 2 */ !default /* comment 3 */ ; /* comment 4 */
@mixin text-color {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`composes.css 1`] = `
exports[`composes.css - css-verify 1`] = `
.reference {
composes: selector from "a/long/file/path/exceeding/the/maximum/length/forcing/a/line-wrap/file.css";
}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`empty.css 1`] = `
exports[`empty.css - css-verify 1`] = `
.ui-syntax-color();
details[open] {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`fill.css 1`] = `
exports[`fill.css - css-verify 1`] = `
div {
border-left: 1px solid mix($warningBackgroundColors, $warningBorderColors, 50%);
$fontFamily: "Lato", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`grid.css 1`] = `
exports[`grid.css - css-verify 1`] = `
/* quotes */
div {
grid-template-areas:

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`important.css 1`] = `
exports[`important.css - css-verify 1`] = `
div {
max-height: none !important;
}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`indent.css 1`] = `
exports[`indent.css - css-verify 1`] = `
div {
background: var(fig-light-02) url(/images/inset-shadow-east-ltr.png) 100% 0 repeat-y;
box-shadow: 0 0 1px 2px rgba(88, 144, 255, 0.75), 0 1px 1px rgba(0, 0, 0, 0.15);
@ -20,7 +20,7 @@ div {
`;
exports[`selectors.css 1`] = `
exports[`selectors.css - css-verify 1`] = `
a {
~ .Pagination-itemWrapper:not(.is-separator):not([data-priority^='#{$priority}'])
~ .Pagination-itemWrapper.is-separator[data-priority^='#{$priority}'] {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`empty.css 1`] = `
exports[`empty.css - css-verify 1`] = `
@font-face {
src: url();
}
@ -11,7 +11,7 @@ exports[`empty.css 1`] = `
`;
exports[`inline_url.css 1`] = `
exports[`inline_url.css - css-verify 1`] = `
.breadItem {
background-image: url('/images/product/simple_product_manager/breadcrumb/chevron_right.png');
background-image: url(/images/product/simple_product_manager/breadcrumb/chevron_right.png);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`less.less 1`] = `
exports[`less.less - less-verify 1`] = `
@nice-blue: #5B83AD;
@light-blue: @nice-blue + #111;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`long_rule.css 1`] = `
exports[`long_rule.css - css-verify 1`] = `
.nuclide-resize-sensitive-container-sensor,
.nuclide-resize-sensitive-container-expand,
.nuclide-resize-sensitive-container-shrink {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`modules.css 1`] = `
exports[`modules.css - css-verify 1`] = `
@value colors: './colors.css';
@value first, second, third from colors;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`numbers.css 1`] = `
exports[`numbers.css - css-verify 1`] = `
@supports (margin: .5px ".30px" 1E+2px) {
a {
a: 0;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`params.css 1`] = `
exports[`params.css - css-verify 1`] = `
.clusterPlannerDialog input[type="text"],
.clusterPlannerDialog .uiTypeahead {
width: 220px;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`parens.css 1`] = `
exports[`parens.css - css-verify 1`] = `
a {
prop1: func(1px,1px,1px,func(1px,1px,1px,func(1px,1px,1px)));
prop2: func( 1px ,1px ,1px ,func( 1px ,1px ,1px ,func( 1px ,1px ,1px ) ) );

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`postcss-mixins.css 1`] = `
exports[`postcss-mixins.css - css-verify 1`] = `
a {
@mixin $(theme)-colors;
}
@ -69,7 +69,7 @@ a {
`;
exports[`postcss-nested.css 1`] = `
exports[`postcss-nested.css - css-verify 1`] = `
.phone {
&_title {
width: 500px;
@ -102,7 +102,7 @@ exports[`postcss-nested.css 1`] = `
`;
exports[`postcss-nested-props.css 1`] = `
exports[`postcss-nested-props.css - css-verify 1`] = `
.funky {
font: {
family: fantasy;
@ -133,7 +133,7 @@ exports[`postcss-nested-props.css 1`] = `
`;
exports[`postcss-nesting.css 1`] = `
exports[`postcss-nesting.css - css-verify 1`] = `
a {
order: 1;
@nest b & {
@ -553,7 +553,7 @@ a {
`;
exports[`postcss-simple-vars.css 1`] = `
exports[`postcss-simple-vars.css - css-verify 1`] = `
background-color: $$(style)Color;
background-color: $$(style)Color Color122;
color: @@color;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`prefix.css 1`] = `
exports[`prefix.css - css-verify 1`] = `
div {
margin-left: -@leftMargin;
transform: translateY(-@offset);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`pseudo_call.css 1`] = `
exports[`pseudo_call.css - css-verify 1`] = `
div:not(:last-child) {
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`quotes.css 1`] = `
exports[`quotes.css - css-verify 1`] = `
@charset "UTF-8";
/* @charset must always have double quotes: https://www.w3.org/TR/css-syntax-3/#determine-the-fallback-encoding */
/* Also, it has to be the very first thing in the file, but here are some more tests anyway: */
@ -189,7 +189,7 @@ one "two" three {
`;
exports[`quotes.css 2`] = `
exports[`quotes.css - css-verify 2`] = `
@charset "UTF-8";
/* @charset must always have double quotes: https://www.w3.org/TR/css-syntax-3/#determine-the-fallback-encoding */
/* Also, it has to be the very first thing in the file, but here are some more tests anyway: */

View File

@ -1,13 +1,13 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`import_comma.scss 1`] = `
exports[`import_comma.scss - scss-verify 1`] = `
@import "rounded-corners", "text-shadow";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@import "rounded-corners", "text-shadow";
`;
exports[`scss.scss 1`] = `
exports[`scss.scss - scss-verify 1`] = `
@media #{$g-breakpoint-tiny} {}
.#{$fa-css-prefix}-glass:before { content: $fa-var-glass; }
a {height: calc(#{$foo} + 1);}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`call.css 1`] = `
exports[`call.css - css-verify 1`] = `
.e:extend(.f, .g) {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.e:extend(.f, .g) {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`selectors.css 1`] = `
exports[`selectors.css - css-verify 1`] = `
.a,.b,.c {}
.r { &, &:hover {} }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`string.css 1`] = `
exports[`string.css - css-verify 1`] = `
:not(".public/basics/positioning") {
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`at-rules.css 1`] = `
exports[`at-rules.css - css-verify 1`] = `
a {
@include section-type-1(
$header:
@ -68,7 +68,7 @@ a {
`;
exports[`at-rules.css 2`] = `
exports[`at-rules.css - scss-verify 1`] = `
a {
@include section-type-1(
$header:
@ -136,7 +136,7 @@ a {
`;
exports[`declaration.css 1`] = `
exports[`declaration.css - css-verify 1`] = `
a {
margin: $bar,;
}
@ -147,7 +147,7 @@ a {
`;
exports[`declaration.css 2`] = `
exports[`declaration.css - scss-verify 1`] = `
a {
margin: $bar,;
}
@ -158,7 +158,7 @@ a {
`;
exports[`list.css 1`] = `
exports[`list.css - css-verify 1`] = `
$colors: hotpink deepskyblue firebrick,;
$list: (a,);
$list: ('Helvetica', 'Arial', sans-serif,);
@ -256,7 +256,7 @@ $breakpoint-map: (
`;
exports[`list.css 2`] = `
exports[`list.css - scss-verify 1`] = `
$colors: hotpink deepskyblue firebrick,;
$list: (a,);
$list: ('Helvetica', 'Arial', sans-serif,);
@ -354,7 +354,7 @@ $breakpoint-map: (
`;
exports[`map.css 1`] = `
exports[`map.css - css-verify 1`] = `
$map: (
small: 767px,
medium: 992px,
@ -391,7 +391,7 @@ $map: (
`;
exports[`map.css 2`] = `
exports[`map.css - scss-verify 1`] = `
$map: (
small: 767px,
medium: 992px,
@ -428,7 +428,7 @@ $map: (
`;
exports[`selector_list.css 1`] = `
exports[`selector_list.css - css-verify 1`] = `
asdasldaskdhjkashdahsdkjahskdjhakjsdkjahsdhkasdhkajsdhakjsdhkajsdhjkahskjdkjahsjkdjkakjsdm,
asdasldaskdhjkashdahsdkjahskdjhakjsdkjahsdhkasdhkajsdhakjsdhkajsdhjkahskjdkjahsjkdjkakjsdm, {
@ -452,7 +452,7 @@ asdasldaskdhjkashdahsdkjahskdjhakjsdkjahsdhkasdhkajsdhakjsdhkajsdhjkahskjdkjahsj
`;
exports[`selector_list.css 2`] = `
exports[`selector_list.css - scss-verify 1`] = `
asdasldaskdhjkashdahsdkjahskdjhakjsdkjahsdhkasdhkajsdhakjsdhkajsdhjkahskjdkjahsjkdjkakjsdm,
asdasldaskdhjkashdahsdkjahskdjhakjsdkjahsdhkasdhkajsdhakjsdhkajsdhjkahskjdkjahsjkdjkakjsdm, {
@ -476,7 +476,7 @@ asdasldaskdhjkashdahsdkjahskdjhakjsdkjahsdhkasdhkajsdhakjsdhkajsdhjkahskjdkjahsj
`;
exports[`variable.css 1`] = `
exports[`variable.css - css-verify 1`] = `
$test: 1,;
$margin: 0, 2em, 0, 1.5em,;
@ -486,7 +486,7 @@ $margin: 0, 2em, 0, 1.5em;
`;
exports[`variable.css 2`] = `
exports[`variable.css - scss-verify 1`] = `
$test: 1,;
$margin: 0, 2em, 0, 1.5em,;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`variables.css 1`] = `
exports[`variables.css - css-verify 1`] = `
.foo {
--prop: 10px;
prop1: var(--prop);
@ -29,7 +29,7 @@ exports[`variables.css 1`] = `
`;
exports[`variables.scss 1`] = `
exports[`variables.scss - css-verify 1`] = `
.foo {
--#{$prop}: 10px;
#{$prop}: 10px;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comment_after.css 1`] = `
exports[`comment_after.css - css-verify 1`] = `
---
title: Title
description: Description
@ -20,7 +20,7 @@ description: Description
`;
exports[`dirty.css 1`] = `
exports[`dirty.css - css-verify 1`] = `
---
hello: world
a:
@ -46,7 +46,7 @@ a:
`;
exports[`empty.css 1`] = `
exports[`empty.css - css-verify 1`] = `
---
---
@ -63,7 +63,7 @@ a {
`;
exports[`empty_newlines.css 1`] = `
exports[`empty_newlines.css - css-verify 1`] = `
---
@ -85,7 +85,7 @@ a {
`;
exports[`malformed.css 1`] = `
exports[`malformed.css - css-verify 1`] = `
---
aaa
b---
@ -99,7 +99,7 @@ a {
`;
exports[`malformed-2.css 1`] = `
exports[`malformed-2.css - css-verify 1`] = `
---
foo: bar
---
@ -126,7 +126,7 @@ a {
`;
exports[`only_comments.css 1`] = `
exports[`only_comments.css - css-verify 1`] = `
---
# comment 1
# comment 2
@ -149,7 +149,7 @@ a {
`;
exports[`with_comments.css 1`] = `
exports[`with_comments.css - css-verify 1`] = `
---
title: Title
description: Description
@ -171,7 +171,7 @@ a {
`;
exports[`without-newline-after.css 1`] = `
exports[`without-newline-after.css - css-verify 1`] = `
---
title: Title
description: Description
@ -191,7 +191,7 @@ a {
`;
exports[`yaml.css 1`] = `
exports[`yaml.css - css-verify 1`] = `
---
title: Title
description: Description
@ -212,7 +212,7 @@ a {
`;
exports[`yaml.less 1`] = `
exports[`yaml.less - css-verify 1`] = `
---
title: Title
description: Description
@ -233,7 +233,7 @@ a {
`;
exports[`yaml.scss 1`] = `
exports[`yaml.scss - css-verify 1`] = `
---
title: Title
description: Description

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comments-1.js 1`] = `
exports[`comments-1.js - babylon-verify 1`] = `
// hi l<|>ol
function ehllooo () {
const hi = "hi"
@ -13,7 +13,7 @@ function ehllooo() {
`;
exports[`comments-2.js 1`] = `
exports[`comments-2.js - babylon-verify 1`] = `
<|>
// howdy
// hi lol
@ -25,7 +25,7 @@ const y = 5;
`;
exports[`comments-3.js 1`] = `
exports[`comments-3.js - babylon-verify 1`] = `
/<|>/ howdy
// hi lol
const y = 5
@ -36,7 +36,7 @@ const y = 5;
`;
exports[`comments-4.js 1`] = `
exports[`comments-4.js - babylon-verify 1`] = `
// howdy
// hi lol
const y = 5
@ -49,7 +49,7 @@ const y = 5;
`;
exports[`cursor-0.js 1`] = `
exports[`cursor-0.js - babylon-verify 1`] = `
(function() {return <|> 15})()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(function() {
@ -58,7 +58,7 @@ exports[`cursor-0.js 1`] = `
`;
exports[`cursor-1.js 1`] = `
exports[`cursor-1.js - babylon-verify 1`] = `
(function(){return <|>15})()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(function() {
@ -67,7 +67,7 @@ exports[`cursor-1.js 1`] = `
`;
exports[`cursor-2.js 1`] = `
exports[`cursor-2.js - babylon-verify 1`] = `
foo <|> (bar);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -75,7 +75,7 @@ foo<|>(bar);
`;
exports[`cursor-3.js 1`] = `
exports[`cursor-3.js - babylon-verify 1`] = `
<|>
@ -86,7 +86,7 @@ exports[`cursor-3.js 1`] = `
`;
exports[`cursor-4.js 1`] = `
exports[`cursor-4.js - babylon-verify 1`] = `
const y = 5
@ -101,21 +101,21 @@ const y = 5;
`;
exports[`cursor-5.js 1`] = `
exports[`cursor-5.js - babylon-verify 1`] = `
const /* h<|>i */ y = 5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const /* h<|>i */ y = 5;
`;
exports[`cursor-6.js 1`] = `
exports[`cursor-6.js - babylon-verify 1`] = `
const y /* h<|>i */ = 5
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
const y /* h<|>i */ = 5;
`;
exports[`cursor-7.js 1`] = `
exports[`cursor-7.js - babylon-verify 1`] = `
const y = 5
<|>
@ -127,19 +127,19 @@ const z = 9;
`;
exports[`cursor-8.js 1`] = `
exports[`cursor-8.js - babylon-verify 1`] = `
func<|>tion banana(){}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
func<|>tion banana() {}
`;
exports[`cursor-9.js 1`] = `
exports[`cursor-9.js - babylon-verify 1`] = `
thisWillBeFormatted <|> (2 ,3, )~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
thisWillBeFormatted<|>(2, 3);
`;
exports[`cursor-10.js 1`] = `
exports[`cursor-10.js - babylon-verify 1`] = `
const y = 5
@ -151,7 +151,7 @@ const y = 5;
<|>
`;
exports[`file-start-with-comment-1.js 1`] = `
exports[`file-start-with-comment-1.js - babylon-verify 1`] = `
// hi<|> lol
haha()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -160,7 +160,7 @@ haha();
`;
exports[`file-start-with-comment-2.js 1`] = `
exports[`file-start-with-comment-2.js - babylon-verify 1`] = `
// hi lol
haha()<|>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -169,7 +169,7 @@ haha()<|>;
`;
exports[`range-0.js 1`] = `
exports[`range-0.js - babylon-verify 1`] = `
thisWontBeFormatted ( 1 ,3)
thisWillBeFormatted <|> (2 ,3, )
@ -184,7 +184,7 @@ thisWontBeFormatted ( 1 ,3)
`;
exports[`range-1.js 1`] = `
exports[`range-1.js - babylon-verify 1`] = `
thisWontBeFormatted ( 1 ,3)
thisWillBeFormatted (2 ,3<|>, )
@ -199,7 +199,7 @@ thisWontBeFormatted ( 1 ,3)
`;
exports[`range-2.js 1`] = `
exports[`range-2.js - babylon-verify 1`] = `
thisWontBeFormatted ( 1 ,3)
thisWillBeFormatted (2 ,3, <|> )
@ -214,7 +214,7 @@ thisWontBeFormatted ( 1 ,3)
`;
exports[`range-3.js 1`] = `
exports[`range-3.js - babylon-verify 1`] = `
thisWontBeFormatted <|> ( 1 ,3)
thisWillBeFormatted (2 ,3, )
@ -229,7 +229,7 @@ thisWontBeFormatted <|> ( 1 ,3)
`;
exports[`range-4.js 1`] = `
exports[`range-4.js - babylon-verify 1`] = `
thisWontBeFormatted ( 1 ,3)
thisWillBeFormatted (2 ,3, )

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.css 1`] = `
exports[`test.css - css-verify 1`] = `
.blah {
/* hloow <|> */
background-color: white;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comments.js 1`] = `
exports[`comments.js - babylon-verify 1`] = `
class Something {
@Annotateme()
// comment

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`comments.js 1`] = `
exports[`comments.js - babylon-verify 1`] = `
var x = 100
@Hello({
@ -64,7 +64,7 @@ export class Bar {}
`;
exports[`methods.js 1`] = `
exports[`methods.js - babylon-verify 1`] = `
class Yo {
@foo("hello")
@ -84,7 +84,7 @@ class Yo {
`;
exports[`mobx.js 1`] = `
exports[`mobx.js - babylon-verify 1`] = `
import {observable} from "mobx";
@observer class OrderLine {
@ -128,7 +128,7 @@ class OrderLine {
`;
exports[`multiple.js 1`] = `
exports[`multiple.js - babylon-verify 1`] = `
const dog = {
@readonly
@nonenumerable
@ -145,7 +145,7 @@ const dog = {
`;
exports[`redux.js 1`] = `
exports[`redux.js - babylon-verify 1`] = `
@connect(mapStateToProps, mapDispatchToProps)
export class MyApp extends React.Component {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`destructuring.js 1`] = `
exports[`destructuring.js - flow-verify 1`] = `
const [one, two = null, three = null] = arr;
a = ([s=1,]) => 1
const { children, ...props } = this.props

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`escaped.js 1`] = `
exports[`escaped.js - flow-verify 1`] = `
// Unnecessary escapes. (adapted from tests/quotes/strings.js)
// Note that in directives, unnecessary escapes should be preserved.
// See https://github.com/prettier/prettier/issues/1555
@ -75,20 +75,20 @@ exports[`escaped.js 1`] = `
`;
exports[`last-line-0.js 1`] = `
exports[`last-line-0.js - flow-verify 1`] = `
'use strict';~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"use strict";
`;
exports[`last-line-1.js 1`] = `
exports[`last-line-1.js - flow-verify 1`] = `
'use strict';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"use strict";
`;
exports[`last-line-2.js 1`] = `
exports[`last-line-2.js - flow-verify 1`] = `
'use strict';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -96,7 +96,7 @@ exports[`last-line-2.js 1`] = `
`;
exports[`newline.js 1`] = `
exports[`newline.js - flow-verify 1`] = `
/* @flow */
"use strict";
@ -115,7 +115,7 @@ a();
`;
exports[`no-newline.js 1`] = `
exports[`no-newline.js - flow-verify 1`] = `
"use strict";
a
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -124,7 +124,7 @@ a;
`;
exports[`test.js 1`] = `
exports[`test.js - flow-verify 1`] = `
"use strict";
function fn() {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`do.js 1`] = `
exports[`do.js - babylon-verify 1`] = `
const envSpecific = {
domain:
do {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = `
exports[`test.js - flow-verify 1`] = `
import("module.js");
import("module.js").then((a) => a);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,23 +1,23 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`empty 1`] = `
exports[`empty - flow-verify 1`] = `
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`;
exports[`newline 1`] = `
exports[`newline - flow-verify 1`] = `
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`;
exports[`space 1`] = `
exports[`space - flow-verify 1`] = `
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
`;
exports[`space-newline 1`] = `
exports[`space-newline - flow-verify 1`] = `
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`class.js 1`] = `
exports[`class.js - flow-verify 1`] = `
class x {
/**
* Set of default settings to be applied to model fetch calls in DAO layer.
@ -18,7 +18,7 @@ class x {
`;
exports[`empty_paren_comment.js 1`] = `
exports[`empty_paren_comment.js - flow-verify 1`] = `
let f = (/* ... */) => {}
(function (/* ... */) {})(/* ... */)
function f(/* ... */) {}

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`body.js 1`] = `
exports[`body.js - flow-verify 1`] = `
with (a);
if (1); else if (2); else;
for (;;);
@ -22,7 +22,7 @@ while (1);
`;
exports[`no-newline.js 1`] = `
exports[`no-newline.js - flow-verify 1`] = `
if (a) {
b;

View File

@ -1,139 +1,139 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`export_default_arrow_expression.js 1`] = `
exports[`export_default_arrow_expression.js - babylon-verify 1`] = `
export default () => {};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default () => {};
`;
exports[`export_default_arrow_expression.js 2`] = `
exports[`export_default_arrow_expression.js - flow-verify 1`] = `
export default () => {};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default () => {};
`;
exports[`export_default_call_expression.js 1`] = `
exports[`export_default_call_expression.js - babylon-verify 1`] = `
export default foo()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default foo();
`;
exports[`export_default_call_expression.js 2`] = `
exports[`export_default_call_expression.js - flow-verify 1`] = `
export default foo()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default foo();
`;
exports[`export_default_class_declaration.js 1`] = `
exports[`export_default_class_declaration.js - babylon-verify 1`] = `
export default class Foo {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default class Foo {}
`;
exports[`export_default_class_declaration.js 2`] = `
exports[`export_default_class_declaration.js - flow-verify 1`] = `
export default class Foo {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default class Foo {}
`;
exports[`export_default_class_expression.js 1`] = `
exports[`export_default_class_expression.js - babylon-verify 1`] = `
export default (class foobar {})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (class foobar {});
`;
exports[`export_default_class_expression.js 2`] = `
exports[`export_default_class_expression.js - flow-verify 1`] = `
export default (class foobar {})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (class foobar {});
`;
exports[`export_default_function_declaration.js 1`] = `
exports[`export_default_function_declaration.js - babylon-verify 1`] = `
export default function() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default function() {}
`;
exports[`export_default_function_declaration.js 2`] = `
exports[`export_default_function_declaration.js - flow-verify 1`] = `
export default function() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default function() {}
`;
exports[`export_default_function_declaration_async.js 1`] = `
exports[`export_default_function_declaration_async.js - babylon-verify 1`] = `
export default async function foo() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default async function foo() {}
`;
exports[`export_default_function_declaration_async.js - flow-verify 1`] = `
export default async function foo() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (async function foo() {});
`;
exports[`export_default_function_declaration_async.js 2`] = `
export default async function foo() {}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default async function foo() {}
`;
exports[`export_default_function_declaration_named.js 1`] = `
exports[`export_default_function_declaration_named.js - babylon-verify 1`] = `
export default function f(){}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default function f() {}
`;
exports[`export_default_function_declaration_named.js 2`] = `
exports[`export_default_function_declaration_named.js - flow-verify 1`] = `
export default function f(){}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default function f() {}
`;
exports[`export_default_function_expression.js 1`] = `
exports[`export_default_function_expression.js - babylon-verify 1`] = `
export default (function() {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (function() {});
`;
exports[`export_default_function_expression.js 2`] = `
exports[`export_default_function_expression.js - flow-verify 1`] = `
export default (function() {});
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (function() {});
`;
exports[`export_default_function_expression_named.js 1`] = `
exports[`export_default_function_expression_named.js - babylon-verify 1`] = `
export default (function f(){})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (function f() {});
`;
exports[`export_default_function_expression_named.js 2`] = `
exports[`export_default_function_expression_named.js - flow-verify 1`] = `
export default (function f(){})
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (function f() {});
`;
exports[`export_default_new_expression.js 1`] = `
exports[`export_default_new_expression.js - babylon-verify 1`] = `
export default new Foo();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default new Foo();
`;
exports[`export_default_new_expression.js 2`] = `
exports[`export_default_new_expression.js - flow-verify 1`] = `
export default new Foo();
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default new Foo();

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = `
exports[`test.js - flow-verify 1`] = `
type Props = {||};
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
type Props = {||};

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`bracket.js 1`] = `
exports[`bracket.js - flow-verify 1`] = `
export {
runTaskForChanged,
description,
@ -27,7 +27,7 @@ export { fitsIn, oneLine };
`;
exports[`bracket.js 2`] = `
exports[`bracket.js - flow-verify 2`] = `
export {
runTaskForChanged,
description,
@ -54,7 +54,7 @@ export {fitsIn, oneLine};
`;
exports[`empty.js 1`] = `
exports[`empty.js - flow-verify 1`] = `
export {};
export {} from ".";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -63,7 +63,7 @@ export {} from ".";
`;
exports[`empty.js 2`] = `
exports[`empty.js - flow-verify 2`] = `
export {};
export {} from ".";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`body.js 1`] = `
exports[`body.js - flow-verify 1`] = `
export default (class {}[1] = 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
export default (class {}[1] = 1);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`export.js 1`] = `
exports[`export.js - babylon-verify 1`] = `
export * as ns from 'mod';
export v from 'mod';
export a, * as b from 'mod';

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = `
exports[`test.js - babylon-verify 1`] = `
export { value1, value2 as value2_renamed, value3, value4 as value4_renamed, value5 } from "exports";
export a,{b} from "./baz";

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`no_regression.js 1`] = `
exports[`no_regression.js - babylon-verify 1`] = `
// Ensure no regression.
"use strict";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -9,7 +9,7 @@ exports[`no_regression.js 1`] = `
`;
exports[`use_strict.js 1`] = `
exports[`use_strict.js - babylon-verify 1`] = `
// Parentheses around expression statement should be preserved in this case.
("use strict");
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = `
exports[`test.js - babylon-verify 1`] = `
setTimeout(function() {
thing();
}, 500);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`break-continue.js 1`] = `
exports[`break-continue.js - flow-verify 1`] = `
function foo() {
while(true) { break; }
}
@ -23,7 +23,7 @@ function bar() {
`;
exports[`return.js 1`] = `
exports[`return.js - flow-verify 1`] = `
function bar(x:number) { }
function foo() {
var x = null;
@ -40,7 +40,7 @@ function foo() {
`;
exports[`toplevel_throw.js 1`] = `
exports[`toplevel_throw.js - flow-verify 1`] = `
// @flow
throw new Error('foo'); // no error

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`annot.js 1`] = `
exports[`annot.js - flow-verify 1`] = `
function foo(str:string, i:number):string {
return str;
}
@ -134,7 +134,7 @@ function barfoo(n: number | null | void): ?number {
`;
exports[`forward_ref.js 1`] = `
exports[`forward_ref.js - flow-verify 1`] = `
let myClassInstance: MyClass = null; // forward ref ok, null ~> class error
function bar(): MyClass {
@ -169,7 +169,7 @@ function foo() {
`;
exports[`issue-530.js 1`] = `
exports[`issue-530.js - flow-verify 1`] = `
function foo(...args: any) { }
module.exports = foo;
@ -180,7 +180,7 @@ module.exports = foo;
`;
exports[`leak.js 1`] = `
exports[`leak.js - flow-verify 1`] = `
/** @flow */
/* This test documents an example we ran into of a type annotation leaking.
@ -229,7 +229,7 @@ function bar(y: MyObj): string {
`;
exports[`other.js 1`] = `
exports[`other.js - flow-verify 1`] = `
class C { }
module.exports = (C: any);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -238,7 +238,7 @@ module.exports = (C: any);
`;
exports[`scope.js 1`] = `
exports[`scope.js - flow-verify 1`] = `
type Merge<T> = (a: T, b: T) => T;
// hypothetical immutable map
@ -295,7 +295,7 @@ class Foo<A> {
`;
exports[`test.js 1`] = `
exports[`test.js - flow-verify 1`] = `
var C = require('./other');
((0: C): string);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = `
exports[`A.js - flow-verify 1`] = `
type T = any;
export default class {
@ -23,7 +23,7 @@ export default class {
`;
exports[`B.js 1`] = `
exports[`B.js - flow-verify 1`] = `
import A from "./A"
class B extends A {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`A.js 1`] = `
exports[`A.js - flow-verify 1`] = `
/**
* @providesModule A
* @flow
@ -33,7 +33,7 @@ export default class {
`;
exports[`B.js 1`] = `
exports[`B.js - flow-verify 1`] = `
/**
* @flow
*/
@ -56,7 +56,7 @@ class B extends A {
`;
exports[`T.js 1`] = `
exports[`T.js - flow-verify 1`] = `
/**
* @providesModule T
*/

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`any.js 1`] = `
exports[`any.js - flow-verify 1`] = `
// @flow
function foo(x:any):any { return x; }
@ -29,7 +29,7 @@ var z: string = qux(0);
`;
exports[`anyexportflowfile.js 1`] = `
exports[`anyexportflowfile.js - flow-verify 1`] = `
// @flow
module.exports = ((x: any) => x: any);
@ -40,7 +40,7 @@ module.exports = ((x: any) => x: any);
`;
exports[`flowfixme.js 1`] = `
exports[`flowfixme.js - flow-verify 1`] = `
/*
FlowFixMe is a synonym for any, used by the Flow team to
signal a needed mod to JS devs.
@ -91,7 +91,7 @@ var w: string = baz(0);
`;
exports[`flowissue.js 1`] = `
exports[`flowissue.js - flow-verify 1`] = `
/*
$FlowIssue is a synonym for any, used by JS devs to signal
a potential typechecker bug to the Flow team.
@ -142,7 +142,7 @@ var w: string = baz(0);
`;
exports[`nonflowfile.js 1`] = `
exports[`nonflowfile.js - flow-verify 1`] = `
// @noflow
module.exports = (x) => x;
@ -153,7 +153,7 @@ module.exports = x => x;
`;
exports[`propagate.js 1`] = `
exports[`propagate.js - flow-verify 1`] = `
// @flow
declare class C {
@ -208,7 +208,7 @@ function bar2(x: mixed) {
`;
exports[`reach.js 1`] = `
exports[`reach.js - flow-verify 1`] = `
/**
* like class and function values, any-typed values may be used in
* type annotations. Here we test propagation of any through the

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Arith.js 1`] = `
exports[`Arith.js - flow-verify 1`] = `
/* @providesModule Arith */
@ -186,7 +186,7 @@ let tests = [
`;
exports[`exponent.js 1`] = `
exports[`exponent.js - flow-verify 1`] = `
/* @flow */
let x: number = 2 ** 3;
@ -213,7 +213,7 @@ y **= 2; // error
`;
exports[`generic.js 1`] = `
exports[`generic.js - flow-verify 1`] = `
/* @flow */
function f<A>(a: A): A { return a + a; } // error
@ -242,7 +242,7 @@ function f<A, B>(a: A, b: B): B {
`;
exports[`mult.js 1`] = `
exports[`mult.js - flow-verify 1`] = `
/* @flow */
function num(x:number) { }
@ -271,7 +271,7 @@ y *= 2; // error
`;
exports[`relational.js 1`] = `
exports[`relational.js - flow-verify 1`] = `
/* @flow */
(1 < 2);

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = `
exports[`test.js - flow-verify 1`] = `
/* @flow */
function filterOutVoids<T> (arr: Array<?T>): Array<T> {
@ -23,7 +23,7 @@ function filterOutSmall(arr: Array<?number>): Array<?number> {
`;
exports[`test2.js 1`] = `
exports[`test2.js - flow-verify 1`] = `
/* @flow */
function filterItems(items: Array<string|number>): Array<string|number> {

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`test.js 1`] = `
exports[`test.js - flow-verify 1`] = `
var A = [1,2,3];
var B = [...A];
var C = [1,2,3];

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`array_lib.js 1`] = `
exports[`array_lib.js - flow-verify 1`] = `
/* @flow */
function foo(x:string) { }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Arrays.js 1`] = `
exports[`Arrays.js - flow-verify 1`] = `
/* @providesModule Arrays */
@ -82,7 +82,7 @@ module.exports = "arrays";
`;
exports[`numeric_elem.js 1`] = `
exports[`numeric_elem.js - flow-verify 1`] = `
var arr = [];
var day = new Date;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`advanced_arrows.js 1`] = `
exports[`advanced_arrows.js - flow-verify 1`] = `
/**
* @flow
*/
@ -27,7 +27,7 @@ var ident = <T>(x: T): T => x;
`;
exports[`arrows.js 1`] = `
exports[`arrows.js - flow-verify 1`] = `
function selectBestEffortImageForWidth(
maxWidth: number,
images: Array<Image>

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`async.js 1`] = `
exports[`async.js - flow-verify 1`] = `
// @flow
// "For async functions, a Promise<T> is returned,
@ -117,7 +117,7 @@ var objf: () => Promise<number> = obj.f;
`;
exports[`async_base_class.js 1`] = `
exports[`async_base_class.js - flow-verify 1`] = `
// This is kind of weird, but it should parse. This works in babel without the
// parens around (await promise). From the es6 and async/await specs I (nmote)
// am not clear on whether it should. In any case it's a strange corner case
@ -150,7 +150,7 @@ async function foo() {
`;
exports[`async_parse.js 1`] = `
exports[`async_parse.js - flow-verify 1`] = `
async function f() {}
async function ft<T>(a: T) {}
@ -203,7 +203,7 @@ var y = { async };
`;
exports[`async_promise.js 1`] = `
exports[`async_promise.js - flow-verify 1`] = `
async function f(): Promise<number> {
return Promise.resolve(1);
}
@ -214,7 +214,7 @@ async function f(): Promise<number> {
`;
exports[`async_return_void.js 1`] = `
exports[`async_return_void.js - flow-verify 1`] = `
// @flow
async function foo1(): Promise<string> {
@ -247,7 +247,7 @@ async function foo3(): Promise<string> {
`;
exports[`async2.js 1`] = `
exports[`async2.js - flow-verify 1`] = `
// @flow
// misc basic
@ -374,7 +374,7 @@ function test5() {
`;
exports[`async3.js 1`] = `
exports[`async3.js - flow-verify 1`] = `
// @flow
/**
@ -442,7 +442,7 @@ async function baz() {
`;
exports[`await_parse.js 1`] = `
exports[`await_parse.js - flow-verify 1`] = `
async function f() { await 1; }
async function ft<T>(a: T) { await 1; }

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`delegate_yield.js 1`] = `
exports[`delegate_yield.js - flow-verify 1`] = `
async function *delegate_next() {
async function *inner() {
var x: void = yield; // error: number ~> void
@ -57,7 +57,7 @@ async function* delegate_return() {
`;
exports[`generator.js 1`] = `
exports[`generator.js - flow-verify 1`] = `
declare interface File {
readLine(): Promise<string>;
close(): void;
@ -112,7 +112,7 @@ async function f() {
`;
exports[`return.js 1`] = `
exports[`return.js - flow-verify 1`] = `
declare var gen: AsyncGenerator<void,string,void>;
// You can pass whatever you like to return, it doesn't need to be related to
@ -163,7 +163,7 @@ refuse_return()
`;
exports[`throw.js 1`] = `
exports[`throw.js - flow-verify 1`] = `
async function *catch_return() {
try {
yield 0;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`customfun.js 1`] = `
exports[`customfun.js - flow-verify 1`] = `
// @flow
declare var idx: $Facebookism$Idx;
@ -27,7 +27,7 @@ m;
`;
exports[`unknown.js 1`] = `
exports[`unknown.js - flow-verify 1`] = `
// @noflow
module.exports = { x: { y: "" } };
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`client.js 1`] = `
exports[`client.js - flow-verify 1`] = `
var y:number = x;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
var y: number = x;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`lib.js 1`] = `
exports[`lib.js - flow-verify 1`] = `
declare var x: string;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
declare var x: string;

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`in.js 1`] = `
exports[`in.js - flow-verify 1`] = `
// @flow
let tests = [

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`const.js 1`] = `
exports[`const.js - flow-verify 1`] = `
const x = 0;
// errors: const cannot be reassigned
@ -59,7 +59,7 @@ for (const { baz } of bazzes) {
`;
exports[`rebinding.js 1`] = `
exports[`rebinding.js - flow-verify 1`] = `
/* @flow
* test errors on illegal rebinding/reassignment
*
@ -458,7 +458,7 @@ function fn_params_clash_fn_binding(x, y) {
`;
exports[`scope.js 1`] = `
exports[`scope.js - flow-verify 1`] = `
function block_scope() {
let a: number = 0;
var b: number = 0;
@ -685,7 +685,7 @@ function default_param_2() {
`;
exports[`tdz.js 1`] = `
exports[`tdz.js - flow-verify 1`] = `
/** @flow */
// -- types ---

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`FormData.js 1`] = `
exports[`FormData.js - flow-verify 1`] = `
/* @flow */
// constructor
@ -148,7 +148,7 @@ for (let [x, y]: [number, number] of a.entries()) {
`;
exports[`MutationObserver.js 1`] = `
exports[`MutationObserver.js - flow-verify 1`] = `
/* @flow */
// constructor

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`scope.js 1`] = `
exports[`scope.js - flow-verify 1`] = `
function foo<X, Y:X>(x:X, y:Y):void { }
foo(0, "");
@ -15,7 +15,7 @@ function bar<X: number, Y: X>(x: X, y: Y): number {
`;
exports[`test.js 1`] = `
exports[`test.js - flow-verify 1`] = `
function foo<T: number>(x: T): T {
var _ = x * 1; // OK
var y: string = x; // error

View File

@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`break.js 1`] = `
exports[`break.js - flow-verify 1`] = `
function foo(b) {
var x = b ? null: false;
var z;

Some files were not shown because too many files have changed in this diff Show More