mirror of
https://github.com/sartography/cr-connect-bpmn.git
synced 2025-01-11 09:35:52 +00:00
Adds test for sorting file names
This commit is contained in:
parent
3c4ac7f4d8
commit
760d52a559
@ -103,6 +103,18 @@ describe('FileListComponent', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
|
||||
it('should sort files by name', () => {
|
||||
let prevFileMeta;
|
||||
|
||||
for (const thisFileMeta of component.fileMetas) {
|
||||
if (!prevFileMeta) {
|
||||
prevFileMeta = thisFileMeta;
|
||||
} else {
|
||||
expect(thisFileMeta.name).toBeGreaterThan(prevFileMeta.name);
|
||||
prevFileMeta = thisFileMeta;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
it('should show a confirmation dialog before deleting a file', () => {
|
||||
const mockConfirmDeleteData: DeleteFileDialogData = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user