Skip to content

Commit 46347a5

Browse files
committed
Add integration tests
1 parent ac2bed3 commit 46347a5

25 files changed

+2730
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { createClient, getDefaultLocationId } from "./helpers";
2+
3+
describe("CashDrawers API", () => {
4+
const client = createClient();
5+
6+
it("should list cash drawer shifts", async () => {
7+
const start = new Date(Date.now() - 1000 * 60 * 60).toISOString();
8+
const end = new Date().toISOString();
9+
const response = await client.cashDrawers.shifts.list({
10+
locationId: await getDefaultLocationId(client),
11+
beginTime: start,
12+
endTime: end,
13+
});
14+
expect(response).toBeDefined();
15+
expect(response.data).toBeDefined();
16+
});
17+
});

0 commit comments

Comments
 (0)