Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit e9d2989

Browse files
committed
Updated snapshot tests
1 parent 66fb941 commit e9d2989

File tree

2 files changed

+88
-80
lines changed

2 files changed

+88
-80
lines changed

src/__tests__/__snapshots__/storybook.test.ts.snap

Lines changed: 83 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
exports[`Storyshots Banner BottomBanner 1`] = `
44
<div
5-
className="d-flex justify-content-center bg-dark queer-banner p-1"
5+
className="d-flex justify-content-center bg-dark queer-banner p-0"
66
>
77
Queer Lives Matter
88
</div>
99
`;
1010

1111
exports[`Storyshots Banner TopBanner 1`] = `
1212
<div
13-
className="d-flex justify-content-center bg-dark text-yellow p-1"
13+
className="d-flex justify-content-center bg-dark text-yellow p-0"
1414
>
1515
Black Lives Matter
1616
</div>
@@ -33,7 +33,7 @@ exports[`Storyshots Error404 default 1`] = `
3333
</div>
3434
`;
3535

36-
exports[`Storyshots Filesystem Context Menu default 1`] = `
36+
exports[`Storyshots Filesystem FilesystemContextMenu 1`] = `
3737
<div
3838
className="fileListItemDropdownButton dropdown"
3939
id="fileListItemDropdownButton-34"
@@ -236,105 +236,113 @@ exports[`Storyshots Filesystem default 1`] = `
236236
</span>
237237
</div>
238238
<div
239-
className="flex-grow-1 overflow-auto"
239+
className="flex-grow-1 overflow-auto d-flex h-100 flex-column"
240240
id="fileView"
241241
>
242242
<div
243-
className="d-flex flex-column h-100 container-fluid"
243+
className="flex-grow-1 overflow-auto"
244+
id="fileList"
244245
>
245246
<div
246-
className="flex-shrink-0"
247+
className="d-flex flex-column h-100 container-fluid"
247248
>
248-
<nav
249-
aria-label="breadcrumb"
249+
<div
250+
className="flex-shrink-0"
250251
>
251-
<ol
252-
className="breadcrumb"
252+
<nav
253+
aria-label="breadcrumb"
253254
>
254-
<a
255-
className="breadcrumb-item active"
256-
href="/file"
257-
onClick={[Function]}
255+
<ol
256+
className="breadcrumb"
258257
>
259-
Home
260-
</a>
261-
</ol>
262-
</nav>
263-
<div
264-
className="row"
265-
>
258+
<a
259+
className="breadcrumb-item active"
260+
href="/file"
261+
onClick={[Function]}
262+
>
263+
Home
264+
</a>
265+
</ol>
266+
</nav>
266267
<div
267-
className="col-md-1 col-2"
268+
className="row"
268269
>
269270
<div
270-
className="form-group"
271+
className="col-md-1 col-2"
271272
>
272273
<div
273-
className="form-check"
274+
className="form-group"
274275
>
275-
<input
276-
checked={false}
277-
className="form-check-input position-static"
278-
disabled={false}
279-
id="formBasicCheckbox"
280-
onChange={[Function]}
281-
type="checkbox"
282-
/>
276+
<div
277+
className="form-check"
278+
>
279+
<input
280+
checked={false}
281+
className="form-check-input position-static"
282+
disabled={false}
283+
id="formBasicCheckbox"
284+
onChange={[Function]}
285+
type="checkbox"
286+
/>
287+
</div>
283288
</div>
284289
</div>
285-
</div>
286-
<div
287-
className="text-center col-md-1 col-2"
288-
onClick={[Function]}
289-
>
290-
Type
291-
</div>
292-
<div
293-
className="col-md-1 col-2"
294-
>
295-
Interact
296-
</div>
297-
<div
298-
className="col-md-4 col-6"
299-
onClick={[Function]}
300-
>
301-
Name
302-
</div>
303-
<div
304-
className="col-md-3 col-6"
305-
onClick={[Function]}
306-
>
307-
Last updated by
308-
</div>
309-
<div
310-
className="col-md-1 col-3"
311-
onClick={[Function]}
312-
>
313-
Last changes
314-
</div>
315-
<div
316-
className="col-md-1 col-3"
317-
onClick={[Function]}
318-
>
319-
Size
290+
<div
291+
className="text-center col-md-1 col-2"
292+
onClick={[Function]}
293+
>
294+
Type
295+
</div>
296+
<div
297+
className="col-md-1 col-2"
298+
>
299+
Interact
300+
</div>
301+
<div
302+
className="col-md-4 col-6"
303+
onClick={[Function]}
304+
>
305+
Name
306+
</div>
307+
<div
308+
className="col-md-3 col-6"
309+
onClick={[Function]}
310+
>
311+
Last updated by
312+
</div>
313+
<div
314+
className="col-md-1 col-3"
315+
onClick={[Function]}
316+
>
317+
Last changes
318+
</div>
319+
<div
320+
className="col-md-1 col-3"
321+
onClick={[Function]}
322+
>
323+
Size
324+
</div>
320325
</div>
321326
</div>
322-
</div>
323-
<div
324-
className="overflow-auto flex-grow-1"
325-
>
326327
<div
327-
className="row"
328+
className="overflow-auto flex-grow-1"
328329
>
329330
<div
330-
className="text-center col"
331+
className="row"
331332
>
332-
Nothing to see here.
333+
<div
334+
className="text-center col"
335+
>
336+
Nothing to see here.
337+
</div>
333338
</div>
334339
</div>
335340
</div>
336341
</div>
337-
<div />
342+
<div
343+
className="flex-shrink-0"
344+
id="uploadInformation"
345+
/>
338346
</div>
339347
<div
340348
className="flex-shrink-0"

src/components/pages/filesytem/FileList.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function FileList(props: Props): ReactElement {
6767
const setCurrentPath = props.setCurrentPath;
6868
const setCurrentFsItemId = props.setCurrentFsItemId;
6969

70-
useEffect(():void => {
70+
useEffect((): void => {
7171
function updateStates(): void {
7272
getFolderContents(path)
7373
.then((response: AxiosResponse<FsEntity[]>) => {
@@ -102,7 +102,7 @@ function FileList(props: Props): ReactElement {
102102
location
103103
]);
104104

105-
const handleSelectAllChanged = ():void|ClearSelected => {
105+
const handleSelectAllChanged = (): void | ClearSelected => {
106106
if (allAreSelected) {
107107
return props.clearSelected();
108108
}
@@ -111,15 +111,15 @@ function FileList(props: Props): ReactElement {
111111
}
112112
};
113113

114-
function setSortingOrder(property: keyof FsEntity):void {
114+
function setSortingOrder(property: keyof FsEntity): void {
115115
if (sortedBy === property) {
116116
return setSortIncreasing(!sortIncreasing);
117117
}
118118
setSortedBy(property);
119119
setSortIncreasing(true);
120120
}
121121

122-
function getSortingFunction(property: keyof FsEntity):(a:any,b:any)=>number {
122+
function getSortingFunction(property: keyof FsEntity): (a: any, b: any) => number {
123123
switch (property) {
124124
case "lastUpdatedBy":
125125
case "size":
@@ -146,7 +146,7 @@ function FileList(props: Props): ReactElement {
146146
}
147147
}
148148

149-
function handleSortClick(property: keyof FsEntity):void {
149+
function handleSortClick(property: keyof FsEntity): void {
150150
if (!filesAndFolders || filesAndFolders.length < 2) {
151151
return;
152152
}

0 commit comments

Comments
 (0)