Skip to content

Commit e1b8419

Browse files
fix: web tests
1 parent 7d39b0b commit e1b8419

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

tests/languages/web/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
// Init SDK
2323
const { Client, Foo, Bar, General } = Appwrite;
2424
const client = new Client();
25-
const foo = new Foo(client, 'string');
25+
const foo = new Foo(client);
2626
const bar = new Bar(client);
2727
const general = new General(client);
2828

@@ -34,19 +34,19 @@
3434
});
3535

3636
// Foo
37-
response = await foo.get(123, ["string in array"]);
37+
response = await foo.get('string', 123, ["string in array"]);
3838
console.log(response.result);
3939

40-
response = await foo.post(123, ["string in array"]);
40+
response = await foo.post('string', 123, ["string in array"]);
4141
console.log(response.result);
4242

43-
response = await foo.put(123, ["string in array"]);
43+
response = await foo.put('string', 123, ["string in array"]);
4444
console.log(response.result);
4545

46-
response = await foo.patch(123, ["string in array"]);
46+
response = await foo.patch('string', 123, ["string in array"]);
4747
console.log(response.result);
4848

49-
response = await foo.delete(123, ["string in array"]);
49+
response = await foo.delete('string', 123, ["string in array"]);
5050
console.log(response.result);
5151

5252
// Bar

tests/languages/web/node.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,23 @@ async function start() {
55

66
console.log('\nTest Started');
77
const client = new Client();
8-
const foo = new Foo(client, 'string');
8+
const foo = new Foo(client);
99
const bar = new Bar(client);
1010
const general = new General(client);
1111
// Foo
12-
response = await foo.get(123, ['string in array']);
12+
response = await foo.get('string', 123, ['string in array']);
1313
console.log(response.result);
1414

15-
response = await foo.post(123, ['string in array']);
15+
response = await foo.post('string', 123, ['string in array']);
1616
console.log(response.result);
1717

18-
response = await foo.put(123, ['string in array']);
18+
response = await foo.put('string', 123, ['string in array']);
1919
console.log(response.result);
2020

21-
response = await foo.patch(123, ['string in array']);
21+
response = await foo.patch('string', 123, ['string in array']);
2222
console.log(response.result);
2323

24-
response = await foo.delete(123, ['string in array']);
24+
response = await foo.delete('string', 123, ['string in array']);
2525
console.log(response.result);
2626

2727
// Bar

0 commit comments

Comments
 (0)