mirror of
https://github.com/foss42/apidash.git
synced 2025-06-17 03:38:11 +08:00
Update toString results
This commit is contained in:
@ -5,13 +5,18 @@ void main() {
|
|||||||
const nmRow1 = NameValueModel(name: "harry", value: 23);
|
const nmRow1 = NameValueModel(name: "harry", value: 23);
|
||||||
|
|
||||||
test('Testing toString()', () {
|
test('Testing toString()', () {
|
||||||
const nmRow1Expected = {"name": "harry", "value": 23};
|
const resultExpected = 'NameValueModel(name: harry, value: 23)';
|
||||||
expect(nmRow1.toJson(), nmRow1Expected);
|
expect(nmRow1.toString(), resultExpected);
|
||||||
|
});
|
||||||
|
|
||||||
|
test('Testing toJson()', () {
|
||||||
|
const resultExpected = {"name": "harry", "value": 23};
|
||||||
|
expect(nmRow1.toJson(), resultExpected);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Testing copyWith()', () {
|
test('Testing copyWith()', () {
|
||||||
const nmRow2Expected = NameValueModel(name: "winter", value: "26");
|
const resultExpected = NameValueModel(name: "winter", value: "26");
|
||||||
expect(nmRow1.copyWith(name: "winter", value: "26"), nmRow2Expected);
|
expect(nmRow1.copyWith(name: "winter", value: "26"), resultExpected);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('Testing hashcode', () {
|
test('Testing hashcode', () {
|
||||||
|
@ -124,7 +124,7 @@ void main() {
|
|||||||
"Request Name: foss42 api",
|
"Request Name: foss42 api",
|
||||||
"Request Description: ",
|
"Request Description: ",
|
||||||
"Request Tab Index: 0",
|
"Request Tab Index: 0",
|
||||||
"Request Headers: [{content-length: 18}, {content-type: application/json; charset=utf-8}]",
|
"Request Headers: [NameValueModel(name: content-length, value: 18), NameValueModel(name: content-type, value: application/json; charset=utf-8)]",
|
||||||
"Request Params: null",
|
"Request Params: null",
|
||||||
"Request Body Content Type: ContentType.json",
|
"Request Body Content Type: ContentType.json",
|
||||||
'Request Body: {\n"text":"WORLD"\n}',
|
'Request Body: {\n"text":"WORLD"\n}',
|
||||||
|
Reference in New Issue
Block a user