Skip to content

Commit

Permalink
add more test for global storage types
Browse files Browse the repository at this point in the history
  • Loading branch information
rami-monday committed Jan 10, 2024
1 parent 792248c commit e97a04b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions ts-tests/monday-sdk-js-module.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,22 @@ monday.storage.instance.deleteItem("test").then(res => {
data.success; // $ExpectType boolean
}); // $ExpectType Promise<DeleteResponse>

monday.storage.getItem("test").then(res => {
const { data } = res;
data.success; // $ExpectType boolean
data.value; // $ExpectType any
}); // $ExpectType Promise<GetResponse>

monday.storage.setItem("test", "123").then(res => {
const { data } = res;
data.success; // $ExpectType boolean
}); // $ExpectType Promise<SetResponse>

monday.storage.deleteItem("test").then(res => {
const { data } = res;
data.success; // $ExpectType boolean
}); // $ExpectType Promise<DeleteResponse>

const mondayServer = mondaySdk({ token: "123", apiVersion: "2023-10" });

mondayServer.setToken("123"); // $ExpectType void
Expand Down

0 comments on commit e97a04b

Please sign in to comment.