Skip to content

Commit

Permalink
feat(hub-common): update test case
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannaeapicella committed Nov 25, 2024
1 parent 5e8914f commit 6ac0b2a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/common/test/discussions/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,12 @@ describe("discussions utils", () => {
});

it("constructs file name", () => {
const result = getPostCSVFileName("an entity name");
expect(result).toEqual("an-entity-name_2024-04-01T16-00-00-000Z.csv");
const result = getPostCSVFileName(
" Some really-really really--REALLY long title with non alpha-numeric characters!@ I can't believe how long this title is. It exceeds 250 characters yet we're still able to produce a reasonable file name from it. Geesh, I'm running out of things to type to reach 250 characters "
);
expect(result).toEqual(
"some-really-really-really-really-long-title-with-non-alpha-numeric-characters-i-can-t-believe-how-long-this-title-is-it-exceeds-250-characters-yet-we-re-still-able-to-produce-a-reasonable-file-name-from-it-geesh-i-m-runni_2024-04-01T16-00-00-000Z.csv"
);
});
});
});

0 comments on commit 6ac0b2a

Please sign in to comment.