This repository has been archived by the owner on Jan 14, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
daf051a
commit 091f64c
Showing
5 changed files
with
33 additions
and
23 deletions.
There are no files selected for viewing
Binary file added
BIN
+134 Bytes
.../src/test/resources/allure-results/00a0bc5a-6372-4e66-8088-1571966a156b-attachment.tar.gz
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,5 @@ | ||
import typeByMime from '../util/attachmentType'; | ||
|
||
export default function(type) { | ||
switch (typeByMime(type).type) { | ||
case 'text': | ||
return 'fa fa-file-text-o'; | ||
case 'image': | ||
case 'svg': | ||
return 'fa fa-file-image-o'; | ||
case 'code': | ||
return 'fa fa-file-code-o'; | ||
case 'table': | ||
return 'fa fa-table'; | ||
default: | ||
return 'fa fa-file-o'; | ||
} | ||
return typeByMime(type).icon; | ||
} |
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