mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-01-31 00:00:03 +08:00
18 lines
391 B
JavaScript
18 lines
391 B
JavaScript
const BlobMock = require('./Blob.mock');
|
|
|
|
module.exports = class FileMock extends BlobMock {
|
|
constructor(blob, fileName) {
|
|
super(blob, { type: blob.type });
|
|
this._fileName = fileName !== undefined ? fileName : 'blob';
|
|
this.__lastModifiedDate = new Date();
|
|
}
|
|
|
|
get name() {
|
|
return this._fileName;
|
|
}
|
|
|
|
get lastModifiedDate() {
|
|
return this.__lastModifiedDate;
|
|
}
|
|
}
|