Skip to content

Commit

Permalink
test(events): Add TrackedEvent.then unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jcowman2 committed Nov 4, 2019
1 parent d0414d5 commit 6c0f2b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/events.test.ts
Expand Up @@ -477,6 +477,12 @@ describe("Events", function() {
]);
});

it("TrackedEvent.then returns an EventQueue", function() {
Game.init(MD);
const eq = on("FOO", on("BAZ", () => {})).then(on("BAR", () => {}));
expect(isEventQueue(eq)).to.be.true;
});

describe("QTests", function() {
// Start utility functions

Expand Down

0 comments on commit 6c0f2b8

Please sign in to comment.