Fix expectation in record writer test

This commit is contained in:
Simon Binder 2023-05-12 22:45:43 +02:00
parent 28417c52af
commit 78299f30d3
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 10 additions and 5 deletions

View File

@ -75,11 +75,16 @@ class Database {}
contains(
'typedef User = ({DateTime? birthDate, int id, String name});',
),
contains(
'return (id: attachedDatabase.typeMapping.read(DriftSqlType.int, data[\'\${effectivePrefix}id\'])!, '
'name: attachedDatabase.typeMapping.read(DriftSqlType.string, data[\'\${effectivePrefix}name\'])!, '
'birthDate: attachedDatabase.typeMapping.read(DriftSqlType.dateTime, data[\'\${effectivePrefix}birth_date\']), );',
),
contains(r'''
return (
id: attachedDatabase.typeMapping
.read(DriftSqlType.int, data['${effectivePrefix}id'])!,
name: attachedDatabase.typeMapping
.read(DriftSqlType.string, data['${effectivePrefix}name'])!,
birthDate: attachedDatabase.typeMapping
.read(DriftSqlType.dateTime, data['${effectivePrefix}birth_date']),
);
'''),
))
}, result.dartOutputs, result);
}, skip: requireDart('3.0.0-dev'));