forked from cardosofelipe/fast-next-template
test(project-events): add tests for demo configuration defaults
Added unit test cases to verify that the `demo.enabled` field is properly initialized to `false` in configurations and mock overrides.
This commit is contained in:
@@ -27,6 +27,9 @@ jest.mock('@/config/app.config', () => ({
|
||||
debug: {
|
||||
api: false,
|
||||
},
|
||||
demo: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
@@ -649,6 +652,9 @@ describe('useProjectEvents', () => {
|
||||
debug: {
|
||||
api: true,
|
||||
},
|
||||
demo: {
|
||||
enabled: false,
|
||||
},
|
||||
},
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user