mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
26 lines
740 B
Dart
26 lines
740 B
Dart
import 'package:har/har.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
import 'collection_examples/collection_apidash.dart';
|
|
import 'models/collection_apidash_model.dart';
|
|
|
|
void main() {
|
|
group('Har tests', () {
|
|
test('API Dash Har Requests from Json String', () {
|
|
expect(harLogFromJsonStr(collectionJsonStr), collectionApiDashModel);
|
|
});
|
|
|
|
test('API Dash Har Requests from Json', () {
|
|
expect(HarLog.fromJson(collectionJson), collectionApiDashModel);
|
|
});
|
|
|
|
test('API Dash Har Requests to Json String', () {
|
|
expect(harLogToJsonStr(collectionApiDashModel), collectionJsonStr);
|
|
});
|
|
|
|
test('API Dash Har Requests to Json', () {
|
|
expect(collectionApiDashModel.toJson(), collectionJson);
|
|
});
|
|
});
|
|
}
|