Skip to content

Commit 95b3842

Browse files
committed
Add failing test
1 parent 179be26 commit 95b3842

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/__tests__/client-id.test.ts

+12-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test("sanity - get named table", async () => {
1414
expect(table).toBeDefined();
1515
});
1616

17-
test("sanity - get named table", async () => {
17+
test("sanity - get schema", async () => {
1818
const {
1919
data: { columns },
2020
} = await tableWithClient.getSchema();
@@ -24,3 +24,14 @@ test("sanity - get named table", async () => {
2424
expect(clientID).toEqual(process.env.GLIDE_CLIENT_ID);
2525
expect(columns).toBeDefined();
2626
});
27+
28+
it("sanity - can add a row", async () => {
29+
const rowID = await tableWithClient.add({
30+
name: "Test Item",
31+
renamed: "Test Description",
32+
stock: 100,
33+
});
34+
expect(rowID).toBeDefined();
35+
36+
await tableWithClient.delete(rowID);
37+
});

0 commit comments

Comments
 (0)