Skip to content

Commit 17c1696

Browse files
committed
chore: update metis app for e2e
1 parent f99c685 commit 17c1696

File tree

1 file changed

+26
-28
lines changed

1 file changed

+26
-28
lines changed

playground/javascript/node/composition.ts

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,37 +9,35 @@ const client = compositionClient(appId, apiKey);
99

1010
async function testComposition() {
1111
try {
12+
console.log(appId, apiKey)
1213
// create a new composition
13-
/*
14-
const res = await client.multipleBatch({
15-
requests: [
16-
{
17-
action: 'upsert',
18-
body: {
19-
objectID: 'id1',
20-
name: 'my first composition',
21-
description: 'the first ever composition from the client',
22-
behavior: {
23-
injection: {
24-
main: {
25-
source: {
26-
search: {
27-
index: 'cts_e2e_small',
28-
},
29-
},
30-
},
31-
},
32-
},
33-
},
34-
},
35-
],
36-
});
37-
console.log(`[OK]`, res);
38-
*/
14+
// const res = await client.multipleBatch({
15+
// requests: [
16+
// {
17+
// action: 'upsert',
18+
// body: {
19+
// objectID: 'id1',
20+
// name: 'my first composition',
21+
// description: 'the first ever composition from the client',
22+
// behavior: {
23+
// injection: {
24+
// main: {
25+
// source: {
26+
// search: {
27+
// index: 'cts_e2e_small',
28+
// },
29+
// },
30+
// },
31+
// },
32+
// },
33+
// },
34+
// },
35+
// ],
36+
// });
37+
// console.log(`[OK]`, res);
3938

40-
const compos = await client.listCompositions();
39+
console.log(await client.listCompositions())
4140

42-
console.log(`[OK]`, compos);
4341
} catch (e) {
4442
if (e instanceof ApiError) {
4543
return console.log(`[${e.status}] ${e.message}`, e.stackTrace, e);

0 commit comments

Comments
 (0)