diff options
author | bob <bcz@cs.brown.edu> | 2019-06-06 15:33:05 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-06 15:33:05 -0400 |
commit | 0a0d2c9a38dffc5d23c9d9f835fb458a695ce1ef (patch) | |
tree | 8f7035676eba34b46949031a61a9aa7294129c73 | |
parent | dee6c838fe4dcfab3f6ea22c40506d7a34259757 (diff) | |
parent | 60866bb17f649d9b94314271c2d3d05af9a720ac (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
-rw-r--r-- | test/test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test.ts b/test/test.ts index a7d453af3..f1cf75bd4 100644 --- a/test/test.ts +++ b/test/test.ts @@ -104,7 +104,7 @@ describe("Schema", () => { expect(doc.e).to.equal(undefined); }); - it("should do the right thing 2", () => { + it("should do the right thing 3", () => { const test1 = new Doc; const test2 = new Doc; const ifield = new ImageField(new URL("http://google.com")); @@ -121,7 +121,7 @@ describe("Schema", () => { expect(doc.e).to.equal(undefined); }); - it("should do the right thing 3", () => { + it("should do the right thing 4", () => { const doc = TestDoc2(); expect(doc.a).to.equal(true); expect(doc.b).to.equal(5); @@ -146,13 +146,13 @@ describe("Schema", () => { expect(doc3.c).to.equal("hello world"); }); - it("should do the right thing 4", async () => { + it("should do the right thing 5", async () => { const test1 = new Doc; const test2 = new Doc; const doc = TestDoc3(test1); expect(doc.a).to.equal(undefined); test1.a = test2; - const doc2 = doc.a as TestDoc2;//(await doc.a)!; + const doc2 = (await doc.a)!; expect(doc2.a).to.equal(true); expect(doc2.b).to.equal(5); expect(doc2.c).to.equal("hello world"); |