Updated packages and fixed identified CS and typo in sonar-project.properties
Some checks failed
Sonar / SonarQube (push) Has been cancelled
Some checks failed
Sonar / SonarQube (push) Has been cancelled
This commit is contained in:
parent
defa605e45
commit
b5b082bc5d
6 changed files with 819 additions and 501 deletions
|
|
@ -7,15 +7,14 @@ describe("Footer.vue", () => {
|
|||
|
||||
const mockDate = (year: number) => {
|
||||
globalThis.Date = class extends RealDate {
|
||||
constructor() {
|
||||
super();
|
||||
return new RealDate(`${year}-01-01`);
|
||||
constructor(...args: any[]) {
|
||||
super(args.length === 0 ? `${year}-01-01` : args[0]);
|
||||
}
|
||||
|
||||
static now() {
|
||||
return new RealDate(`${year}-01-01`).getTime();
|
||||
}
|
||||
};
|
||||
} as any as DateConstructor;
|
||||
};
|
||||
|
||||
afterEach(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue