diff --git a/tests/flow_class_field/__snapshots__/jsfmt.spec.js.snap b/tests/flow_class_field/__snapshots__/jsfmt.spec.js.snap new file mode 100644 index 000000000..27a12d75f --- /dev/null +++ b/tests/flow_class_field/__snapshots__/jsfmt.spec.js.snap @@ -0,0 +1,12 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`override.js 1`] = ` +class Foo { + constructor: () => this; +} +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +class Foo { + constructor: () => this; +} + +`; diff --git a/tests/flow_class_field/jsfmt.spec.js b/tests/flow_class_field/jsfmt.spec.js new file mode 100644 index 000000000..1840e9d36 --- /dev/null +++ b/tests/flow_class_field/jsfmt.spec.js @@ -0,0 +1 @@ +run_spec(__dirname, null, ["babylon"]); diff --git a/tests/flow_class_field/override.js b/tests/flow_class_field/override.js new file mode 100644 index 000000000..1db4f6088 --- /dev/null +++ b/tests/flow_class_field/override.js @@ -0,0 +1,3 @@ +class Foo { + constructor: () => this; +}