From ac9fa998dd9e256ff15ded352eeda1598ed439c0 Mon Sep 17 00:00:00 2001
From: Zoltan Toth
- function + class Person - ( - - ) + { + + constructor + + () { + 'object' - ) + ) { + Person.instance; + } - Person.instance = + Person.instance = ; - + ; + } } - module + export - .exports = Person; + + + default + + Person;
- class + function Person - + ( + + ) { - - constructor - - () { - 'object' - ) { - + ) Person.instance; - } - Person.instance = + Person.instance = ; - + ; - } } - export - - - - default + module - Person; + .exports = Person;diff --git a/__tests__/pages/__snapshots__/Patterns.test.js.snap b/__tests__/pages/__snapshots__/Patterns.test.js.snap index b4570ec..eb28cce 100644 --- a/__tests__/pages/__snapshots__/Patterns.test.js.snap +++ b/__tests__/pages/__snapshots__/Patterns.test.js.snap @@ -310,7 +310,7 @@ exports[`Patterns page renders the individual Pattern (Singleton) info 1`] = ` .
- function + class Person - ( - - ) + { + + constructor + + () { + 'object' - ) + ) { + Person.instance; + } - Person.instance = + Person.instance = ; - + ; + } } - module + export - .exports = Person; + + + default + + Person;
- class + function Person - + ( + + ) { - - constructor - - () { - 'object' - ) { - + ) Person.instance; - } - Person.instance = + Person.instance = ; - + ; - } } - export - - - - default + module - Person; + .exports = Person;diff --git a/src/components/Pattern.jsx b/src/components/Pattern.jsx index 59940f8..b4bf1a4 100644 --- a/src/components/Pattern.jsx +++ b/src/components/Pattern.jsx @@ -83,14 +83,14 @@ class Pattern extends React.Component { )} -