aboutsummaryrefslogtreecommitdiff
path: root/test/test.ts
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-01-26 17:23:25 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-01-26 17:23:25 -0500
commitba3c6773a04ea83facab1f67db0025d6185c2c65 (patch)
treebe39c0c927ae4649c8505ef33c7f1c8272974ca2 /test/test.ts
parentf98e634ae7070cd841bc523514d147195308696c (diff)
parent122076af3edfd432e6abe3b2571f21034d5c16e5 (diff)
Merge branch 'master' into move_doc_get_out_the_way
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);