新增类型检查工具库 typeCheck.js #177
Annotations
14 errors
lib/file/fileInfo.test.js > yd_file_fileInfo > 处理没有文件名的路径:
lib/file/fileInfo.test.js#L20
AssertionError: expected { Object (name, type, ...) } to deeply equal { name: '', type: '', fullName: '' }
- Expected
+ Received
Object {
"fullName": "",
- "name": "",
- "type": "",
+ "name": "to/",
+ "type": "/path/to/",
}
❯ lib/file/fileInfo.test.js:20:24
|
lib/file/fileInfo.test.js > yd_file_fileInfo > 处理文件名中包含多个"."的情况:
lib/file/fileInfo.test.js#L31
AssertionError: expected { name: 'file', type: 'txt', …(1) } to deeply equal { Object (name, type, ...) }
- Expected
+ Received
Object {
"fullName": "file.name.txt",
- "name": "file.name",
+ "name": "file",
"type": "txt",
}
❯ lib/file/fileInfo.test.js:31:24
|
lib/file/fileToDataURL.test.js > yd_file_fileToDataURL > 将文件转换为base64字符串:
lib/file/fileToDataURL.js#L11
ReferenceError: FileReader is not defined
❯ Module.__vite_ssr_exports__.default lib/file/fileToDataURL.js:11:21
❯ lib/file/fileToDataURL.test.js:9:30
|
build (20.x)
Process completed with exit code 1.
|
build (22.x)
The job was canceled because "_20_x" failed.
|
lib/file/fileInfo.test.js > yd_file_fileInfo > 处理没有文件名的路径:
lib/file/fileInfo.test.js#L20
AssertionError: expected { Object (name, type, ...) } to deeply equal { name: '', type: '', fullName: '' }
- Expected
+ Received
Object {
"fullName": "",
- "name": "",
- "type": "",
+ "name": "to/",
+ "type": "/path/to/",
}
❯ lib/file/fileInfo.test.js:20:24
|
lib/file/fileInfo.test.js > yd_file_fileInfo > 处理文件名中包含多个"."的情况:
lib/file/fileInfo.test.js#L31
AssertionError: expected { name: 'file', type: 'txt', …(1) } to deeply equal { Object (name, type, ...) }
- Expected
+ Received
Object {
"fullName": "file.name.txt",
- "name": "file.name",
+ "name": "file",
"type": "txt",
}
❯ lib/file/fileInfo.test.js:31:24
|
lib/file/fileToDataURL.test.js > yd_file_fileToDataURL > 将文件转换为base64字符串:
lib/file/fileToDataURL.js#L11
ReferenceError: FileReader is not defined
❯ Module.__vite_ssr_exports__.default lib/file/fileToDataURL.js:11:21
❯ lib/file/fileToDataURL.test.js:9:30
|
build (22.x)
Process completed with exit code 1.
|
build (18.x)
The job was canceled because "_20_x" failed.
|
lib/file/fileInfo.test.js > yd_file_fileInfo > 处理没有文件名的路径:
lib/file/fileInfo.test.js#L20
AssertionError: expected { Object (name, type, ...) } to deeply equal { name: '', type: '', fullName: '' }
- Expected
+ Received
Object {
"fullName": "",
- "name": "",
- "type": "",
+ "name": "to/",
+ "type": "/path/to/",
}
❯ lib/file/fileInfo.test.js:20:24
|
lib/file/fileInfo.test.js > yd_file_fileInfo > 处理文件名中包含多个"."的情况:
lib/file/fileInfo.test.js#L31
AssertionError: expected { name: 'file', type: 'txt', …(1) } to deeply equal { Object (name, type, ...) }
- Expected
+ Received
Object {
"fullName": "file.name.txt",
- "name": "file.name",
+ "name": "file",
"type": "txt",
}
❯ lib/file/fileInfo.test.js:31:24
|
lib/file/fileToDataURL.test.js > yd_file_fileToDataURL > 将文件转换为base64字符串:
lib/file/fileToDataURL.test.js#L7
ReferenceError: File is not defined
❯ lib/file/fileToDataURL.test.js:7:22
|
build (18.x)
The operation was canceled.
|