Update name_value_model_test.dart

This commit is contained in:
Ashita Prasad
2024-01-08 00:17:48 +05:30
parent 472f296d32
commit ec3e4922df

View File

@@ -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");