Skip to content

Commit

Permalink
Fix additional test + trying to return a Uri in the JSON API instead …
Browse files Browse the repository at this point in the history
…of string
  • Loading branch information
DanTup committed Sep 9, 2024
1 parent 3ad0e27 commit fd4407d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/devtools_shared/lib/src/server/handlers/_dtd.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ abstract class _DtdApiHandler {
return ServerApi._encodeResponse(
{
// Always provide the exposed URI to callers of the web API.
DtdApi.uriPropertyName: dtd?.exposedUri,
DtdApi.uriPropertyName: dtd?.exposedUri.toString(),
},
api: api,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools_shared/test/server/dtd_api_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void main() {
expect(response.statusCode, HttpStatus.ok);
expect(
await response.readAsString(),
jsonEncode({DtdApi.uriPropertyName: dtdUri}),
jsonEncode({DtdApi.uriPropertyName: dtdUri.toString()}),
);
});
});
Expand Down

0 comments on commit fd4407d

Please sign in to comment.