platform/angel_serialize_generator/test/default_value_test.dart
2018-12-30 20:18:44 -05:00

24 lines
477 B
Dart

import 'package:test/test.dart';
import 'models/goat.dart';
void main() {
group('constructor', () {
test('int default', () {
expect(Goat().integer, 34);
});
test('list default', () {
expect(Goat().list, [34, 35]);
});
});
group('from map', () {
test('int default', () {
expect(GoatSerializer.fromMap({}).integer, 34);
});
test('list default', () {
expect(GoatSerializer.fromMap({}).list, [34, 35]);
});
});
}