mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(cloudcmd) lint
This commit is contained in:
parent
b3f3510b2d
commit
42248bc0f4
10 changed files with 24 additions and 46 deletions
|
|
@ -19,15 +19,14 @@ test('common: datetime: no arg', (t) => {
|
|||
const {Date} = global;
|
||||
|
||||
let called = false;
|
||||
const myDate = class extends Date {
|
||||
|
||||
global.Date = class extends Date {
|
||||
constructor() {
|
||||
super();
|
||||
called = true;
|
||||
}
|
||||
};
|
||||
|
||||
global.Date = myDate;
|
||||
|
||||
datetime();
|
||||
|
||||
global.Date = Date;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue