-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix codeql issues 01162025 * fix tests * fix model location list
- Loading branch information
Showing
9 changed files
with
1,154 additions
and
845 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
153 changes: 58 additions & 95 deletions
153
src/app/modelRepository/components/__snapshots__/modelRepositoryLocationList.spec.tsx.snap
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 |
---|---|---|
@@ -1,107 +1,70 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`ModelRepositoryLocationList matches snapshot with all items 1`] = ` | ||
<Memo(DndContext) | ||
collisionDetection={[Function]} | ||
onDragEnd={[Function]} | ||
sensors={ | ||
Array [ | ||
Object { | ||
"options": Object {}, | ||
"sensor": [Function], | ||
}, | ||
Object { | ||
"options": Object { | ||
"coordinateGetter": [Function], | ||
}, | ||
"sensor": [Function], | ||
}, | ||
] | ||
} | ||
<div | ||
className="location-list" | ||
> | ||
<SortableContext | ||
items={ | ||
<List | ||
lockVertically={false} | ||
onChange={[Function]} | ||
removableByMove={false} | ||
renderItem={[Function]} | ||
renderList={[Function]} | ||
transitionDuration={300} | ||
values={ | ||
Array [ | ||
"PUBLIC", | ||
"CONFIGURABLE", | ||
"LOCAL", | ||
"DMR", | ||
Object { | ||
"repositoryLocationType": "PUBLIC", | ||
"value": "", | ||
}, | ||
Object { | ||
"repositoryLocationType": "CONFIGURABLE", | ||
"value": "test.com", | ||
}, | ||
Object { | ||
"repositoryLocationType": "LOCAL", | ||
"value": "d:/myModels", | ||
}, | ||
Object { | ||
"repositoryLocationType": "DMR", | ||
"value": "c:/dtmi", | ||
}, | ||
] | ||
} | ||
> | ||
<div | ||
className="location-list" | ||
> | ||
<SortableItem | ||
index={0} | ||
item={ | ||
Object { | ||
"repositoryLocationType": "PUBLIC", | ||
"value": "", | ||
} | ||
} | ||
key="PUBLIC" | ||
/> | ||
<SortableItem | ||
index={1} | ||
item={ | ||
Object { | ||
"repositoryLocationType": "CONFIGURABLE", | ||
"value": "test.com", | ||
} | ||
} | ||
key="CONFIGURABLE" | ||
/> | ||
<SortableItem | ||
index={2} | ||
item={ | ||
Object { | ||
"repositoryLocationType": "LOCAL", | ||
"value": "d:/myModels", | ||
} | ||
} | ||
key="LOCAL" | ||
/> | ||
<SortableItem | ||
index={3} | ||
item={ | ||
Object { | ||
"repositoryLocationType": "DMR", | ||
"value": "c:/dtmi", | ||
} | ||
} | ||
key="DMR" | ||
/> | ||
</div> | ||
</SortableContext> | ||
</Memo(DndContext)> | ||
voiceover={ | ||
Object { | ||
"canceled": [Function], | ||
"dropped": [Function], | ||
"item": [Function], | ||
"lifted": [Function], | ||
"moved": [Function], | ||
} | ||
} | ||
/> | ||
</div> | ||
`; | ||
|
||
exports[`ModelRepositoryLocationList matches snapshot with no items 1`] = ` | ||
<Memo(DndContext) | ||
collisionDetection={[Function]} | ||
onDragEnd={[Function]} | ||
sensors={ | ||
Array [ | ||
Object { | ||
"options": Object {}, | ||
"sensor": [Function], | ||
}, | ||
Object { | ||
"options": Object { | ||
"coordinateGetter": [Function], | ||
}, | ||
"sensor": [Function], | ||
}, | ||
] | ||
} | ||
<div | ||
className="location-list" | ||
> | ||
<SortableContext | ||
items={Array []} | ||
> | ||
<div | ||
className="location-list" | ||
/> | ||
</SortableContext> | ||
</Memo(DndContext)> | ||
<List | ||
lockVertically={false} | ||
onChange={[Function]} | ||
removableByMove={false} | ||
renderItem={[Function]} | ||
renderList={[Function]} | ||
transitionDuration={300} | ||
values={Array []} | ||
voiceover={ | ||
Object { | ||
"canceled": [Function], | ||
"dropped": [Function], | ||
"item": [Function], | ||
"lifted": [Function], | ||
"moved": [Function], | ||
} | ||
} | ||
/> | ||
</div> | ||
`; |
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
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
Oops, something went wrong.