Overview
The purpose of this issue is to refactor the code in the file mentioned in the title to improve code quality and maintainability. At the moment, the analyzed-component-files.spec.ts has push repeated twice.
|
componentProfiles.push({ |
|
name: "Button", |
|
type: "internal", |
|
total: 0, |
|
source: { |
|
path: "C:/projects/berryjam-cli/public/Components/Header.js", |
|
property: { |
|
dataLastModified: "Fri Apr 28 2023", |
|
lastModified: "Fri Apr 28 2023", |
|
created: "2023-04-17T04:04:04.000Z", |
|
createdBy: "system", |
|
updatedBy: "system", |
|
}, |
|
}, |
|
properties: [], |
|
usageLocations: [], |
|
groups: [], |
|
children: { total: 1, tags: ["Button"], source: "" }, |
|
}); |
|
// Push 2nd object |
|
componentProfiles.push({ |
|
name: "Button", |
As you can see, It might not need to use push twice to push 2 objects
Expected Behavior
- Using one
push with 2 objects instead.
Overview
The purpose of this issue is to refactor the code in the file mentioned in the title to improve code quality and maintainability. At the moment, the
analyzed-component-files.spec.tshaspushrepeated twice.berryjam/tests/analyze-component-files.spec.ts
Lines 207 to 228 in aec7ac5
As you can see, It might not need to use
pushtwice to push 2 objectsExpected Behavior
pushwith 2 objects instead.