Skip to content

Commit 0a70ab6

Browse files
committed
#142: added disallow null for defaults check
1 parent 4e61662 commit 0a70ab6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/writer/model_reader_test.dart

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ void main() {
2020
PubspecConfig("name: test"),
2121
"""
2222
TestModel:
23+
disallow_null_for_defaults: true
2324
properties:
2425
simpleString: string
2526
nullableString: string?
@@ -65,6 +66,8 @@ TestModel:
6566

6667
expect(simpleDateTime.type, isA<DateTimeType>());
6768
expect(simpleDateTime.isRequired, false);
69+
70+
expect(model.disallowNullForDefaults, true);
6871
});
6972

7073
test('Test required not definable anymore', () {

0 commit comments

Comments
 (0)