fix: fix some tests

This commit is contained in:
2025-02-02 00:45:46 +08:00
parent 28da493462
commit 6a03a2bd62
93 changed files with 2671 additions and 1622 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env node
import { Command } from 'commander';
import { rewriteAllObservableSubscribeToLastValueFrom } from './code-transform';
import { rewriteAllObservableSubscribeTofirstValueFrom } from './code-transform';
const program = new Command();
@@ -13,7 +13,7 @@ program
.command('rewrite <pattern>')
.description('Rewrite files matching the given glob pattern')
.action(async (pattern: string) => {
await rewriteAllObservableSubscribeToLastValueFrom(pattern);
await rewriteAllObservableSubscribeTofirstValueFrom(pattern);
});
program.parse(process.argv);