File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tools/powersynctests/src/tests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ export function registerBaseTests() {
530
530
531
531
it ( 'Should reflect writeTransaction updates on read connections (iterator)' , async ( ) => {
532
532
const watched = new Promise < void > ( async ( resolve ) => {
533
- for await ( const result of db . watchWithAsyncGenerator ( 'SELECT COUNT(*) as count FROM users' , [ ] ) ) {
533
+ for await ( const result of db . watch ( 'SELECT COUNT(*) as count FROM users' , [ ] ) ) {
534
534
if ( result . rows ?. item ( 0 ) . count == 1 ) {
535
535
resolve ( ) ;
536
536
}
@@ -549,7 +549,7 @@ export function registerBaseTests() {
549
549
let error : Error | undefined ;
550
550
try {
551
551
// The table here does not exist, so it should throw an error
552
- for await ( const result of db . watchWithAsyncGenerator ( 'SELECT COUNT(*) as count FROM faketable' , [ ] ) ) {
552
+ for await ( const result of db . watch ( 'SELECT COUNT(*) as count FROM faketable' , [ ] ) ) {
553
553
}
554
554
} catch ( ex ) {
555
555
error = ex as Error ;
@@ -562,7 +562,7 @@ export function registerBaseTests() {
562
562
let error : Error | undefined ;
563
563
try {
564
564
// Invalid SQL
565
- for await ( const result of db . watchWithAsyncGenerator ( 'invalidsyntax' , [ ] ) ) {
565
+ for await ( const result of db . watch ( 'invalidsyntax' , [ ] ) ) {
566
566
}
567
567
} catch ( ex ) {
568
568
error = ex as Error ;
You can’t perform that action at this time.
0 commit comments