mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
add tests for File and test based operations. Only unzip to go
This commit is contained in:
parent
2019ae43d7
commit
b8cb7e9ba8
6 changed files with 76 additions and 7 deletions
|
@ -42,6 +42,14 @@ class File {
|
|||
get size() {
|
||||
return this.data.length;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return lastModified as Date
|
||||
*/
|
||||
get lastModifiedDate() {
|
||||
return new Date(this.lastModified);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export default File;
|
||||
|
|
|
@ -13,12 +13,6 @@ export default [
|
|||
"Label",
|
||||
"Comment",
|
||||
|
||||
// Exclude file ops until HTML5 File Object can be mimicked
|
||||
// "Tar",
|
||||
// "Untar",
|
||||
"Unzip",
|
||||
"Zip",
|
||||
|
||||
// esprima doesn't work in .mjs
|
||||
"JavaScriptBeautify",
|
||||
"JavaScriptMinify",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue