mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 13:51:20 +08:00
Fix RequestModel test
This commit is contained in:
@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:apidash/consts.dart';
|
import 'package:apidash/consts.dart';
|
||||||
import 'package:apidash/utils/utils.dart' show mapToRows, rowsToMap;
|
import 'package:apidash/utils/utils.dart' show mapToRows, rowsToMap;
|
||||||
import 'kvrow_model.dart';
|
import 'kvrow_model.dart';
|
||||||
@ -185,8 +186,8 @@ class RequestModel {
|
|||||||
other.name == name &&
|
other.name == name &&
|
||||||
other.description == description &&
|
other.description == description &&
|
||||||
other.requestTabIndex == requestTabIndex &&
|
other.requestTabIndex == requestTabIndex &&
|
||||||
other.requestHeaders == requestHeaders &&
|
listEquals(other.requestHeaders, requestHeaders) &&
|
||||||
other.requestParams == requestParams &&
|
listEquals(other.requestParams, requestParams) &&
|
||||||
other.requestBodyContentType == requestBodyContentType &&
|
other.requestBodyContentType == requestBodyContentType &&
|
||||||
other.requestBody == requestBody &&
|
other.requestBody == requestBody &&
|
||||||
other.responseStatus == responseStatus &&
|
other.responseStatus == responseStatus &&
|
||||||
|
@ -109,11 +109,11 @@ void main() {
|
|||||||
test('Testing toJson', () {
|
test('Testing toJson', () {
|
||||||
expect(requestModelDup.toJson(), requestModelAsJson);
|
expect(requestModelDup.toJson(), requestModelAsJson);
|
||||||
});
|
});
|
||||||
/*
|
|
||||||
test('Testing fromJson', () {
|
test('Testing fromJson', () {
|
||||||
expect(RequestModel.fromJson(requestModelDup.toJson()), requestModelDup);
|
final modelFromJson = RequestModel.fromJson(requestModelAsJson);
|
||||||
|
expect(modelFromJson, requestModelDup);
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
|
|
||||||
final requestModeDupString = [
|
final requestModeDupString = [
|
||||||
"Request Id: 1",
|
"Request Id: 1",
|
||||||
|
Reference in New Issue
Block a user