build(tests): Adds jest to run tests
Milestone: none Signed-off-by: Alix von Schirp <github@avonschirp.bootmedia.de>
This commit is contained in:
11
tests/index.spec.ts
Normal file
11
tests/index.spec.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import Pushover from "../src";
|
||||
|
||||
test("Pushover is exported", () => {
|
||||
expect(Pushover).toBeDefined();
|
||||
expect(Pushover).toBeInstanceOf(Object);
|
||||
});
|
||||
|
||||
test("Pushover has expected functions", () => {
|
||||
expect(Pushover).toHaveProperty("prototype.constructor");
|
||||
expect(Pushover).toHaveProperty("prototype.send");
|
||||
});
|
||||
Reference in New Issue
Block a user