2017-02-22 00:59:19 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`license_with_flow.js 1`] = `
|
2016-12-23 22:31:38 +03:00
|
|
|
"/* Copyright example */
|
|
|
|
/* @flow */
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
(\\"\\": void); // error
|
2016-12-23 22:31:38 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
/* Copyright example */
|
|
|
|
/* @flow */
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
(\\"\\": void); // error
|
2017-01-11 18:16:38 +03:00
|
|
|
"
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`max_header_tokens.js 1`] = `
|
2016-12-23 22:31:38 +03:00
|
|
|
"/* @flow */
|
|
|
|
/* second token */
|
|
|
|
/* third token */
|
|
|
|
/**
|
|
|
|
* After max_header_tokens (in .flowconfig), we no longer care:
|
|
|
|
*
|
|
|
|
* @flow
|
|
|
|
*/
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-02-05 05:36:29 +03:00
|
|
|
/* @flow */
|
|
|
|
/* second token */
|
|
|
|
/* third token */
|
|
|
|
/**
|
|
|
|
* After max_header_tokens (in .flowconfig), we no longer care:
|
|
|
|
*
|
|
|
|
* @flow
|
|
|
|
*/
|
2016-12-23 22:31:38 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`multiple_flows_1.js 1`] = `
|
2016-12-23 22:31:38 +03:00
|
|
|
"/* @flow */
|
|
|
|
/* @flow */
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-02-05 05:36:29 +03:00
|
|
|
/* @flow */
|
|
|
|
/* @flow */
|
2016-12-23 22:31:38 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`multiple_flows_2.js 1`] = `
|
2016-12-23 22:31:38 +03:00
|
|
|
"/**
|
|
|
|
* @flow
|
|
|
|
* @noflow
|
|
|
|
*/
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-02-05 05:36:29 +03:00
|
|
|
/**
|
|
|
|
* @flow
|
|
|
|
* @noflow
|
|
|
|
*/
|
2016-12-23 22:31:38 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`multiple_providesModule_1.js 1`] = `
|
2016-12-23 22:31:38 +03:00
|
|
|
"/**
|
|
|
|
* @providesModule Foo
|
|
|
|
* @providesModule Bar
|
|
|
|
* @flow
|
|
|
|
*/
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-02-05 05:36:29 +03:00
|
|
|
/**
|
|
|
|
* @providesModule Foo
|
|
|
|
* @providesModule Bar
|
|
|
|
* @flow
|
|
|
|
*/
|
2016-12-23 22:31:38 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`multiple_providesModule_2.js 1`] = `
|
2016-12-23 22:31:38 +03:00
|
|
|
"/**
|
|
|
|
* @providesModule Foo
|
|
|
|
* @flow
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @providesModule Bar
|
|
|
|
*/
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-02-05 05:36:29 +03:00
|
|
|
/**
|
|
|
|
* @providesModule Foo
|
|
|
|
* @flow
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* @providesModule Bar
|
|
|
|
*/
|
2016-12-23 22:31:38 +03:00
|
|
|
"
|
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`use_strict_with_flow.js 1`] = `
|
|
|
|
"\\"use strict\\";
|
2016-12-23 22:31:38 +03:00
|
|
|
/* @flow */
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
(\\"\\": void); // error
|
2016-12-23 22:31:38 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-02-22 00:59:19 +03:00
|
|
|
\\"use strict\\";
|
2017-01-10 05:49:06 +03:00
|
|
|
/* @flow */
|
2017-01-27 22:05:41 +03:00
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
(\\"\\": void); // error
|
2017-01-11 18:16:38 +03:00
|
|
|
"
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`with_flow.js 1`] = `
|
2016-12-23 22:31:38 +03:00
|
|
|
"/* @flow */
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
(\\"\\": void); // error
|
2016-12-23 22:31:38 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
/* @flow */
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
(\\"\\": void); // error
|
2017-01-11 18:16:38 +03:00
|
|
|
"
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
exports[`without_flow.js 1`] = `
|
2016-12-23 22:31:38 +03:00
|
|
|
"/* some other comment */
|
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
(\\"\\": void); // no error
|
2016-12-23 22:31:38 +03:00
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
/* some other comment */
|
2017-01-10 05:49:06 +03:00
|
|
|
|
2017-02-22 00:59:19 +03:00
|
|
|
(\\"\\": void); // no error
|
2017-01-11 18:16:38 +03:00
|
|
|
"
|
2016-12-23 22:31:38 +03:00
|
|
|
`;
|