diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-17 19:45:59 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-17 19:45:59 -0400 |
commit | 9712a046868ee51a565a425d3216a2bb297c4eee (patch) | |
tree | d2adc9a47fb41ab9386dcdc0dc7e6404ad51df23 /src/debug/Test.tsx | |
parent | 6afdd5e5136394c9dc739b5de390aa1b55c6360f (diff) |
Got saving to database working
Diffstat (limited to 'src/debug/Test.tsx')
-rw-r--r-- | src/debug/Test.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/debug/Test.tsx b/src/debug/Test.tsx index 7e7b3a964..660115453 100644 --- a/src/debug/Test.tsx +++ b/src/debug/Test.tsx @@ -7,8 +7,8 @@ import { SerializationHelper } from '../client/util/SerializationHelper'; class Test extends React.Component { onClick = () => { const url = new URLField(new URL("http://google.com")); - const doc = new Doc("a"); - const doc2 = new Doc("b"); + const doc = new Doc(); + const doc2 = new Doc(); doc.hello = 5; doc.fields = "test"; doc.test = "hello doc"; @@ -16,7 +16,7 @@ class Test extends React.Component { doc.testDoc = doc2; console.log("doc", doc); - const cereal = Doc.Serialize(doc); + const cereal = SerializationHelper.Serialize(doc); console.log("cereal", cereal); console.log("doc again", SerializationHelper.Deserialize(cereal)); } |