31 lines
447 B
Plaintext
31 lines
447 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`equals.js 1`] = `
|
|
/* @flow */
|
|
|
|
(1 == 1);
|
|
("foo" == "bar");
|
|
(1 == null);
|
|
(null == 1);
|
|
(1 == ""); // error
|
|
("" == 1); // error
|
|
|
|
var x = (null : ?number);
|
|
(x == 1);
|
|
(1 == x);
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
/* @flow */
|
|
|
|
1 == 1;
|
|
"foo" == "bar";
|
|
1 == null;
|
|
null == 1;
|
|
1 == ""; // error
|
|
"" == 1; // error
|
|
|
|
var x = (null: ?number);
|
|
x == 1;
|
|
1 == x;
|
|
|
|
`;
|