Skip to content

Commit 23cd02e

Browse files
committed
stamp: format :)
1 parent c99e7c5 commit 23cd02e

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

crates/base/test_cases/supabase-ai/index.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import {
66
assertLessOrEqual,
77
assertStringIncludes,
88
assertThrows,
9-
} from 'jsr:@std/assert';
9+
} from "jsr:@std/assert";
1010

11-
const session = new Supabase.ai.Session('gte-small');
11+
const session = new Supabase.ai.Session("gte-small");
1212

1313
assertThrows(() => {
14-
const _ = new Supabase.ai.Session('gte-small_wrong_name');
14+
const _ = new Supabase.ai.Session("gte-small_wrong_name");
1515
}, "invalid 'Session' type");
1616

1717
function dotProduct(a: number[], b: number[]) {
@@ -27,14 +27,13 @@ export default {
2727
async fetch() {
2828
// Generate embedding
2929
// @ts-ignore unkwnow type
30-
const [meow, meowError] = await session.run('meow') as [
30+
const [meow, meowError] = await session.run("meow") as [
3131
number[],
3232
undefined,
3333
];
34-
console.log('cat', meow, meowError);
3534

3635
// @ts-ignore unkwnow type
37-
const [love, loveError] = await session.run('I love cats', {
36+
const [love, loveError] = await session.run("I love cats", {
3837
mean_pool: true,
3938
normalize: true,
4039
}) as [number[], undefined];
@@ -51,7 +50,7 @@ export default {
5150
// "Invalid input should result in error value"
5251
{
5352
const [notCat, notCatError] = await session.run({
54-
bad_input: { 'not a cat': 'let fail' },
53+
bad_input: { "not a cat": "let fail" },
5554
}) as [undefined, { message: string; inner: Error }];
5655

5756
assertEquals(notCat, undefined);
@@ -60,7 +59,7 @@ export default {
6059
assertIsError(notCatError.inner);
6160
assertStringIncludes(
6261
notCatError.message,
63-
'must provide a valid prompt value',
62+
"must provide a valid prompt value",
6463
);
6564
}
6665

types/global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,6 @@ declare namespace Supabase {
184184

185185
declare namespace Deno {
186186
export namespace errors {
187-
class WorkerRequestCancelled extends Error { }
187+
class WorkerRequestCancelled extends Error {}
188188
}
189189
}

0 commit comments

Comments
 (0)