diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-06-06 11:58:31 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-06-06 11:58:31 -0400 |
commit | 60866bb17f649d9b94314271c2d3d05af9a720ac (patch) | |
tree | 3ada53e636a95a5b0e3a2c3071f3184bffd81d59 | |
parent | 3facb0936181392248b6d80ca2835f8159a2ab7b (diff) |
Change tests
-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"); |