Skip to content

Commit

Permalink
Update test with empty request info having no content
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Apr 4, 2024
1 parent 5a58b53 commit 0ed4bea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .run/All Tests.run.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="All Tests" type="DartTestRunConfigurationType" factoryName="Dart Test">
<option name="filePath" value="$PROJECT_DIR$/test" />
<option name="scope" value="FOLDER" />
<configuration default="false" name="All Tests" type="CompoundRunConfigurationType">
<toRun name="Test kiota_abstractions" type="DartTestRunConfigurationType" />
<toRun name="Test kiota_http" type="DartTestRunConfigurationType" />
<method v="2" />
</configuration>
</component>
7 changes: 7 additions & 0 deletions .run/Test kiota_abstractions.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Test kiota_abstractions" type="DartTestRunConfigurationType" factoryName="Dart Test">
<option name="filePath" value="$PROJECT_DIR$/packages/kiota_abstractions/test" />
<option name="scope" value="FOLDER" />
<method v="2" />
</configuration>
</component>
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@ void main() {
expect(blank.pathParameters, <String, dynamic>{});
expect(blank.queryParameters, <String, dynamic>{});
expect(blank.headers, HttpHeaders());
expect(
blank.content,
isA<Uint8List>()
.having((content) => content.length, 'length', equals(0)),
);
expect(blank.content, isNull);
expect(blank.requestOptions, <RequestOption>[]);

expect(() => blank.uri, throwsArgumentError);
Expand Down

0 comments on commit 0ed4bea

Please sign in to comment.