mirror of
https://github.com/foss42/apidash.git
synced 2025-12-04 20:13:56 +08:00
Update name_value_model_test.dart
This commit is contained in:
@@ -13,6 +13,11 @@ void main() {
|
||||
const resultExpected = {"name": "harry", "value": 23};
|
||||
expect(nmRow1.toJson(), resultExpected);
|
||||
});
|
||||
test('Testing fromJson()', () {
|
||||
const resultExpected = nmRow1;
|
||||
expect(NameValueModel.fromJson({"name": "harry", "value": 23}),
|
||||
resultExpected);
|
||||
});
|
||||
|
||||
test('Testing copyWith()', () {
|
||||
const resultExpected = NameValueModel(name: "winter", value: "26");
|
||||
|
||||
Reference in New Issue
Block a user