From e2c619d7585ed38f4c9d06324a3f45e5aecc5e7a Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Wed, 10 Jan 2018 12:32:53 +1100 Subject: [PATCH] Change CodeEditor test to use a snapshot test We only care that the component renders without an error and doesn't change unintentionally, which makes this a perfect use case for snapshot testing. --- components/code-editor/test/__snapshots__/index.js.snap | 7 +++++++ components/code-editor/test/index.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 components/code-editor/test/__snapshots__/index.js.snap diff --git a/components/code-editor/test/__snapshots__/index.js.snap b/components/code-editor/test/__snapshots__/index.js.snap new file mode 100644 index 00000000000000..145b69b94d7d07 --- /dev/null +++ b/components/code-editor/test/__snapshots__/index.js.snap @@ -0,0 +1,7 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`CodeEditor should render without an error 1`] = ` +