Skip to content

Commit 402bd00

Browse files
committed
Fixed bug and also got tests working in the sdk
1 parent abceae8 commit 402bd00

3 files changed

Lines changed: 2 additions & 4 deletions

File tree

crates/bindings-typescript/src/lib/utils.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,6 @@ export function hexStringToUint8Array(str: string): Uint8Array {
6868
const data = Uint8Array.from(
6969
matches.map((byte: string) => parseInt(byte, 16))
7070
);
71-
if (data.length != 32) {
72-
return new Uint8Array(0);
73-
}
7471
return data.reverse();
7572
}
7673

sdks/typescript/examples/quickstart-chat/src/App.integration.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ describe('App Integration Test', () => {
5959
{ timeout: 10000 }
6060
);
6161
});
62-
});
62+
});

sdks/typescript/vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { defineConfig } from 'vitest/config';
44
export default defineConfig({
55
test: {
66
environment: 'node',
7+
include: ['tests/**/*.test.ts'],
78
deps: {
89
external: ['spacetimedb'],
910
},

0 commit comments

Comments
 (0)