migrate: riverpod + freezed (#870)

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-08-31 00:55:54 +08:00
committed by GitHub
parent 9cb705f8dd
commit 53a7c0d8ff
67 changed files with 5012 additions and 1328 deletions

View File

@@ -122,7 +122,7 @@ void main() {
});
test('should handle Windows script path generation', () {
final scriptPath = ShellFunc.status.exec('test-server', systemType: SystemType.windows);
final scriptPath = ShellFunc.status.exec('test-server', systemType: SystemType.windows, customDir: null);
expect(scriptPath, contains('powershell'));
expect(scriptPath, contains('-ExecutionPolicy Bypass'));
@@ -131,7 +131,7 @@ void main() {
test('should execute Windows commands correctly', () {
for (final func in ShellFunc.values) {
final command = func.exec('test-server', systemType: SystemType.windows);
final command = func.exec('test-server', systemType: SystemType.windows, customDir: null);
expect(command, isNotEmpty);
expect(command, contains('powershell'));
}