mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 10:49:49 +08:00
tests: add auth fields widget tests(coverage 98.4%)
This commit is contained in:
@@ -92,7 +92,14 @@ class _ApiKeyAuthFieldsState extends State<ApiKeyAuthFields> {
|
||||
name: _nameController.text.trim(),
|
||||
location: _addKeyTo,
|
||||
),
|
||||
),
|
||||
) ?? AuthModel(
|
||||
type: APIAuthType.apiKey,
|
||||
apikey: AuthApiKeyModel(
|
||||
key: _keyController.text.trim(),
|
||||
name: _nameController.text.trim(),
|
||||
location: _addKeyTo,
|
||||
),
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user