mirror of
https://github.com/foss42/apidash.git
synced 2025-12-14 17:30:58 +08:00
#122 - Package for har (import)
This commit is contained in:
25
packages/har_parser/test/har_parser_test.dart
Normal file
25
packages/har_parser/test/har_parser_test.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:har_parser/har_parser.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
import 'collection_examples/collection_apidash.dart';
|
||||
import 'models/collection_apidash_model.dart';
|
||||
|
||||
void main() {
|
||||
group('Postman tests', () {
|
||||
test('API Dash Postman collection from Json String', () {
|
||||
expect(harLogFromJsonStr(collectionJsonStr), collectionApiDashModel);
|
||||
});
|
||||
|
||||
test('API Dash Postman collection from Json', () {
|
||||
expect(HarLog.fromJson(collectionJson), collectionApiDashModel);
|
||||
});
|
||||
|
||||
test('API Dash Postman collection to Json String', () {
|
||||
expect(harLogToJsonStr(collectionApiDashModel), collectionJsonStr);
|
||||
});
|
||||
|
||||
test('API Dash Postman collection to Json', () {
|
||||
expect(collectionApiDashModel.toJson(), collectionJson);
|
||||
});
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user