Skip to content

Commit

Permalink
chore: fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
wa0x6e committed Mar 27, 2023
1 parent 8097739 commit d9a8e3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/helpers/DateHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class DateHelper {
(window as any)[`dayjs_locale_${userLocale}`] ||
(await this.loadBrowserLocale(userLocale));
} else {
locale = await this.loadNodeLocale(userLocale)
locale = await this.loadNodeLocale(userLocale);
}
dayjs.locale(userLocale);
this.locale = locale;
Expand Down Expand Up @@ -240,6 +240,7 @@ export default class DateHelper {
});
}

// eslint-disable-next-line class-methods-use-this
loadNodeLocale(userLocale: string): Promise<any> {
return import(`dayjs/locale/${userLocale}.js`);
}
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/DateHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe('DateHelper', () => {
expect(dateHelper.date().locale()).toEqual('fr');
expect(dateHelper.locale).toHaveProperty('name');
});
})
});
});
});

Expand Down

0 comments on commit d9a8e3c

Please sign in to comment.