-
-
Notifications
You must be signed in to change notification settings - Fork 783
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests for src/components/AddOn/core/AddOnEntry/AddOnEntry.tsx (#…
- Loading branch information
1 parent
4737b34
commit e713ab6
Showing
2 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { UPDATE_INSTALL_STATUS_PLUGIN_MUTATION } from 'GraphQl/Mutations/mutations'; | ||
|
||
// Mock data representing the response structure of the mutation | ||
const updatePluginStatus = { | ||
_id: '123', | ||
pluginName: 'Sample Plugin', | ||
pluginCreatedBy: 'John Doe', | ||
pluginDesc: 'This is a sample plugin description.', | ||
uninstalledOrgs: [], | ||
}; | ||
|
||
// Creating the mock entry | ||
export const ADD_ON_ENTRY_MOCK = [ | ||
{ | ||
request: { | ||
query: UPDATE_INSTALL_STATUS_PLUGIN_MUTATION, | ||
variables: { id: '1', orgId: 'undefined' }, | ||
}, | ||
result: { | ||
data: { | ||
updatePluginStatus: updatePluginStatus, | ||
}, | ||
}, | ||
}, | ||
]; |