Skip to content

Commit

Permalink
add tests for helper
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed May 30, 2023
1 parent 9312dd6 commit 7d62110
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions dart/test/utils/http_header_utils_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import 'package:sentry/sentry.dart';
import 'package:test/test.dart';

void main() {
test('get content length lower case', () {
final headers = {
'content-length': ['12']
};
expect(HttpHeaderUtils.getContentLength(headers), 12);
});

test('get content length camel case', () {
final headers = {
'Content-Length': ['12']
};
expect(HttpHeaderUtils.getContentLength(headers), 12);
});
}

0 comments on commit 7d62110

Please sign in to comment.