Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/kitchen_sink/test/routes/photos/upload_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void main() {
'file.txt',
ContentType.text,
Stream.fromIterable([[]]),
)
),
},
);
when(request.formData).thenAnswer((_) async => formData);
Expand All @@ -47,7 +47,7 @@ void main() {
'picture.png',
ContentType('image', 'png'),
Stream.fromIterable([[]]),
)
),
},
);
when(request.formData).thenAnswer((_) async => formData);
Expand Down
4 changes: 2 additions & 2 deletions examples/kitchen_sink/test/routes/projects/index_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ void main() {
equals({
'project_configuration': const <String, String>{
'name': 'my_app',
'version': '3.3.8'
}
'version': '3.3.8',
},
}),
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ void main() {
params: {
'workingDirectory': projectDirectory1.path,
'port': project1Server1Port,
'dartVmServicePort': project1Server1Port + 1
'dartVmServicePort': project1Server1Port + 1,
},
),
timeout: const Duration(seconds: 30),
);

expect(response.isSuccess, isTrue);
Expand Down Expand Up @@ -116,9 +117,10 @@ void main() {
params: {
'workingDirectory': projectDirectory2.path,
'port': project2ServerPort,
'dartVmServicePort': project2ServerPort + 1
'dartVmServicePort': project2ServerPort + 1,
},
),
timeout: const Duration(seconds: 30),
);

expect(response.isSuccess, isTrue);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class CreateCommand extends DartFrogCommand {
final generateProgress = logger.progress('Creating $projectName');
final vars = <String, dynamic>{
'name': projectName,
'output_directory': outputDirectory.absolute.path
'output_directory': outputDirectory.absolute.path,
};

logger.detail('[codegen] running generate...');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ void main() {
expect(
processRunCalls,
equals([
['taskkill', '/F', '/T', '/PID', '$processId']
['taskkill', '/F', '/T', '/PID', '$processId'],
]),
);
verifyNever(() => process.kill());
Expand Down Expand Up @@ -742,7 +742,7 @@ runs codegen with debounce when changes are made to the public or routes directo
expect(
processRunCalls,
equals([
['taskkill', '/F', '/T', '/PID', '$processId']
['taskkill', '/F', '/T', '/PID', '$processId'],
]),
);
verifyNever(() => process.kill());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ void main() {
vars: {
'route_path': '/user/[id]/posts/[post_id]/comments',
'type': 'route',
'dir_path': '${directory.path}/routes/something'
'dir_path': '${directory.path}/routes/something',
},
workingDirectory: any(named: 'workingDirectory'),
onVarsChanged: any(named: 'onVarsChanged'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Map<String, String> get _handshakeHeaders {
'Upgrade': 'websocket',
'Connection': 'Upgrade',
'Sec-WebSocket-Key': 'x3JJHMbDL1EzLkh9GBhXDw==',
'Sec-WebSocket-Version': '13'
'Sec-WebSocket-Version': '13',
};
}

Expand Down