We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 179be26 commit 95b3842Copy full SHA for 95b3842
src/__tests__/client-id.test.ts
@@ -14,7 +14,7 @@ test("sanity - get named table", async () => {
14
expect(table).toBeDefined();
15
});
16
17
-test("sanity - get named table", async () => {
+test("sanity - get schema", async () => {
18
const {
19
data: { columns },
20
} = await tableWithClient.getSchema();
@@ -24,3 +24,14 @@ test("sanity - get named table", async () => {
24
expect(clientID).toEqual(process.env.GLIDE_CLIENT_ID);
25
expect(columns).toBeDefined();
26
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