* Common practice for using the test() function is to name
* the test after the thing that is being tested.
test("some noun or verb", () => {});
* Common practice for using the it() function is to name it
* after a tested behavior.
it("should do something as expected", () => {});
* For tests that are incomplete and need review, or shouldn't
* run because they describe behavior that is not supported yet,
* use the xit() and xtest() function to have the module ignore
xtest("something that shouldn't run", () => {});
xit("shouldn't run", () => {});
* In jest, you can check to see if a function throws an error
* by using the expect(func).toThrow() expectation. However, this
* can become tedious to write, and as-pect has a few functions
* that allow you to describe unreachable behavior with less code.
* Use the throws() and xthrows() function to describe a test that
* Name your test after the condition that causes your test to error.
throws("when it should throw", () => {});
itThrows("when it should throw", () => {});
* For setup code that runs ONE time before a group is tested,
* use the beforeAll and afterAll function to run code once per group.
* For setup code that runs every time before each test is tested,
* use the beforeEach and afterEach function to run code once per test.