Skip to content

Commit

Permalink
Format test code. This is a noop.
Browse files Browse the repository at this point in the history
It wasn't done on the first pass of formatting.
  • Loading branch information
John Riordan committed May 11, 2020
1 parent d866dcd commit 8e2ad7d
Show file tree
Hide file tree
Showing 22 changed files with 715 additions and 815 deletions.
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
test
src/grammar
src/platform/react
src/platform/web/modifiers
Expand Down
3 changes: 2 additions & 1 deletion test/spec/api/publication.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ describe("API Publication", () => {
});

afterEach(async () => {
return alice.userAgent.stop()
return alice.userAgent
.stop()
.then(() => expect(alice.isShutdown()).toBe(true))
.then(() => bob.userAgent.stop())
.then(() => expect(bob.isShutdown()).toBe(true))
Expand Down
19 changes: 9 additions & 10 deletions test/spec/api/registration.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ describe("API Registration", () => {
});

afterEach(async () => {
return alice.userAgent.stop()
return alice.userAgent
.stop()
.then(() => expect(alice.isShutdown()).toBe(true))
.then(() => registrar.userAgent.stop())
.then(() => expect(registrar.isShutdown()).toBe(true))
Expand Down Expand Up @@ -76,7 +77,7 @@ describe("API Registration", () => {
});

it("her registerer should throw if register called", () => {
expect(() =>registerer.register()).toThrow();
expect(() => registerer.register()).toThrow();
});

it("her registerer should throw if unregister called", () => {
Expand Down Expand Up @@ -241,10 +242,9 @@ describe("API Registration", () => {
}
};
registerer.unregister();
registerer.unregister()
.catch(() => {
threw = true;
});
registerer.unregister().catch(() => {
threw = true;
});
await alice.transport.waitReceived(); // 200
});

Expand Down Expand Up @@ -602,10 +602,9 @@ describe("API Registration", () => {
}
};
registerer.register();
registerer.register()
.catch(() => {
threw = true;
});
registerer.register().catch(() => {
threw = true;
});
await alice.transport.waitReceived(); // 200
});

Expand Down
Loading

0 comments on commit 8e2ad7d

Please sign in to comment.