mirror of
https://github.com/foss42/apidash.git
synced 2025-05-21 00:09:55 +08:00
29 lines
867 B
Dart
29 lines
867 B
Dart
import 'package:postman/postman.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(postmanCollectionFromJsonStr(collectionApiDashJsonStr),
|
|
collectionApiDashModel);
|
|
});
|
|
|
|
test('API Dash Postman collection from Json', () {
|
|
expect(PostmanCollection.fromJson(collectionApiDashJson),
|
|
collectionApiDashModel);
|
|
});
|
|
|
|
test('API Dash Postman collection to Json String', () {
|
|
expect(postmanCollectionToJsonStr(collectionApiDashModel),
|
|
collectionApiDashJsonStr);
|
|
});
|
|
|
|
test('API Dash Postman collection to Json', () {
|
|
expect(collectionApiDashModel.toJson(), collectionApiDashJson);
|
|
});
|
|
});
|
|
}
|