Skip to content

Commit 69d2b6b

Browse files
committed
inc test case
1 parent ee59ba6 commit 69d2b6b

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/components/AddOn/core/AddOnStore/AddOnStore.spec.tsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ vi.mock('components/AddOn/support/services/Plugin.helper', () => ({
2828
default: vi.fn().mockImplementation(() => ({
2929
fetchStore: vi.fn().mockResolvedValue([
3030
{
31-
_id: '1',
31+
id: '1',
3232
pluginName: 'Plugin 1',
3333
pluginDesc: 'Description 1',
3434
pluginCreatedBy: 'User 1',
3535
pluginInstallStatus: true,
3636
},
3737
{
38-
_id: '2',
38+
id: '2',
3939
pluginName: 'Plugin 2',
4040
pluginDesc: 'Description 2',
4141
pluginCreatedBy: 'User 2',
@@ -45,14 +45,14 @@ vi.mock('components/AddOn/support/services/Plugin.helper', () => ({
4545
]),
4646
fetchInstalled: vi.fn().mockResolvedValue([
4747
{
48-
_id: '1',
48+
id: '1',
4949
pluginName: 'Installed Plugin 1',
5050
pluginDesc: 'Installed Description 1',
5151
pluginCreatedBy: 'User 3',
5252
pluginInstallStatus: true,
5353
},
5454
{
55-
_id: '3',
55+
id: '3',
5656
pluginName: 'Installed Plugin 3',
5757
pluginDesc: 'Installed Description 3',
5858
pluginCreatedBy: 'User 4',
@@ -194,7 +194,7 @@ describe('Testing AddOnStore Component', () => {
194194
data: {
195195
getPlugins: [
196196
{
197-
_id: '1',
197+
id: '1',
198198
pluginName: 'Plugin 1',
199199
pluginDesc: 'Desc 1',
200200
pluginCreatedBy: 'User 1',
@@ -238,7 +238,7 @@ describe('Testing AddOnStore Component', () => {
238238
data: {
239239
getPlugins: [
240240
{
241-
_id: '2',
241+
id: '2',
242242
pluginName: 'Plugin 2',
243243
pluginDesc: 'Desc 2',
244244
pluginCreatedBy: 'User 2',
@@ -286,7 +286,7 @@ describe('Testing AddOnStore Component', () => {
286286
data: {
287287
getPlugins: [
288288
{
289-
_id: '1',
289+
id: '1',
290290
pluginName: 'Test Plugin',
291291
pluginDesc: 'Description',
292292
pluginCreatedBy: 'User',
@@ -353,7 +353,7 @@ describe('Testing AddOnStore Component', () => {
353353
data: {
354354
getPlugins: [
355355
{
356-
_id: '1',
356+
id: '1',
357357
pluginName: 'Test Plugin 1',
358358
pluginDesc: 'Description',
359359
pluginCreatedBy: 'User1',
@@ -362,7 +362,7 @@ describe('Testing AddOnStore Component', () => {
362362
enabled: true,
363363
},
364364
{
365-
_id: '2',
365+
id: '2',
366366
pluginName: 'Test Plugin 2',
367367
pluginDesc: 'Description',
368368
pluginCreatedBy: 'User2',

0 commit comments

Comments
 (0)