Added missing code block language in docs (#147481)
- added language for all code blocks - replaced `bash` or `shell` with `sh` for consistency. - added `sh` and `console` in the GitHub template link generator. - updated test for GitHub template.
This commit is contained in:
@@ -165,10 +165,10 @@ void main() {
|
||||
expect(
|
||||
await creator.toolCrashIssueTemplateGitHubURL(command, error, stackTrace, doctorText),
|
||||
'https://github.com/flutter/flutter/issues/new?title=%5Btool_crash%5D+ArgumentError%3A+'
|
||||
'Invalid+argument%28s%29%3A+argument+error+message&body=%23%23+Command%0A%60%60%60%0A'
|
||||
'Invalid+argument%28s%29%3A+argument+error+message&body=%23%23+Command%0A%60%60%60sh%0A'
|
||||
'flutter+test%0A%60%60%60%0A%0A%23%23+Steps+to+Reproduce%0A1.+...%0A2.+...%0A3.+...%0'
|
||||
'A%0A%23%23+Logs%0AArgumentError%3A+Invalid+argument%28s%29%3A+argument+error+message'
|
||||
'%0A%60%60%60%0Atrace%0A%60%60%60%0A%60%60%60%0A+%5B%E2%9C%93%5D+Flutter+%28Channel+r'
|
||||
'%0A%60%60%60console%0Atrace%0A%60%60%60%0A%60%60%60console%0A+%5B%E2%9C%93%5D+Flutter+%28Channel+r'
|
||||
'eport%0A%60%60%60%0A%0A%23%23+Flutter+Application+Metadata%0ANo+pubspec+in+working+d'
|
||||
'irectory.%0A&labels=tool%2Csevere%3A+crash'
|
||||
);
|
||||
@@ -222,7 +222,7 @@ project_type: app
|
||||
final String? actualBody = Uri.parse(actualURL).queryParameters['body'];
|
||||
const String expectedBody = '''
|
||||
## Command
|
||||
```
|
||||
```sh
|
||||
flutter test
|
||||
```
|
||||
|
||||
@@ -233,10 +233,10 @@ flutter test
|
||||
|
||||
## Logs
|
||||
ArgumentError: Invalid argument(s): argument error message
|
||||
```
|
||||
```console
|
||||
trace
|
||||
```
|
||||
```
|
||||
```console
|
||||
[✓] Flutter (Channel report
|
||||
```
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ Dart VM and Flutter integration.
|
||||
|
||||
Use this command to run (from the `flutter_tools` directory):
|
||||
|
||||
```shell
|
||||
```sh
|
||||
../../bin/cache/dart-sdk/bin/dart run test test/integration.shard
|
||||
```
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ Dart web debug services (dwds) and Flutter integration.
|
||||
|
||||
Use this command to run (from the `flutter_tools` directory):
|
||||
|
||||
```shell
|
||||
```sh
|
||||
../../bin/cache/dart-sdk/bin/dart run test test/web.shard
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user