Skip to content

Commit

Permalink
studio - unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
janavlachova committed Dec 17, 2024
1 parent 1ee04c7 commit 5629c93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion agdb_studio/src/composables/table/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ describe("utils", () => {
describe("dateFormatter", () => {
it("should return a formatted date when value is number", () => {
const formattedDate = dateFormatter(1734447876);
expect(formattedDate).toBe("17. 12. 2024 16:04:36");
expect(formattedDate).toBe(
new Date(1734447876000).toLocaleString(),
);
});
it("should return N/A when value is not a number", () => {
const formattedDate = dateFormatter("not a number");
Expand Down

0 comments on commit 5629c93

Please sign in to comment.