aboutsummaryrefslogtreecommitdiff
path: root/test/test.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-01-22 20:31:32 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-01-22 20:31:32 -0500
commit8a1915a73d1d1173059a212db3b79f8efcdd9e9e (patch)
tree10fbad6a2b3a2dd4f178d062cc01f976244640aa /test/test.ts
parentc67608a7eeeb6bdee27a8e7b4a8f6f8561db6004 (diff)
Temporarily got rid of dvm to draastically improve performance and reduce number of re-renders
Diffstat (limited to 'test/test.ts')
-rw-r--r--test/test.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test.ts b/test/test.ts
index 8c1740ba6..3c8fae8d7 100644
--- a/test/test.ts
+++ b/test/test.ts
@@ -40,10 +40,14 @@ describe("Document", () =>{
it('should update', () => {
let doc = new Document();
let key = new Key("Test");
+ let key2 = new Key("Test2");
let ran = false;
reaction(() => doc.GetField(key), (field) => {ran = true});
expect(ran).to.equal(false);
+ doc.SetField(key2, new NumberField(4));
+ expect(ran).to.equal(false);
+
doc.SetField(key, new NumberField(5));
expect(ran).to.equal(true);