mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
30 lines
783 B
Dart
30 lines
783 B
Dart
import 'package:insomnia_collection/insomnia_collection.dart';
|
|
import 'collection_examples/collection_apidash.dart';
|
|
import 'models/collection_apidash_model.dart';
|
|
import 'package:test/test.dart';
|
|
|
|
void main() {
|
|
group('Insomnia tests', () {
|
|
test('Insomnia collection from Json String', () {
|
|
expect(
|
|
insomniaCollectionFromJsonStr(collectionApiDashJsonStr),
|
|
collectionApiDashModel,
|
|
);
|
|
});
|
|
|
|
test('Insomnia collection from Json', () {
|
|
expect(
|
|
InsomniaCollection.fromJson(collectionApiDashJson),
|
|
collectionApiDashModel,
|
|
);
|
|
});
|
|
|
|
test('Insomnia collection to Json String', () {
|
|
expect(
|
|
insomniaCollectionToJsonStr(collectionApiDashModel),
|
|
collectionApiDashJsonStr,
|
|
);
|
|
});
|
|
});
|
|
}
|