Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion scripts/dashboard/build-dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ export {
getHotDiscussions,
getLabel,
mapGoodFirstIssues,
monthsSince,
processHotDiscussions,
start,
writeToFile
Expand Down
7 changes: 0 additions & 7 deletions tests/dashboard/build-dashboard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const { resolve } = require('path');
const os = require('os');
const {
getLabel,
monthsSince,
mapGoodFirstIssues,
getHotDiscussions,
getDiscussionByID,
Expand Down Expand Up @@ -136,12 +135,6 @@ describe('GitHub Discussions Processing', () => {
expect(getLabel(issue, 'nonexistent/')).toBeUndefined();
});

it('should calculate months since date', () => {
const date = new Date();
date.setMonth(date.getMonth() - 2);
expect(monthsSince(date)).toBe(2);
});

it('should map good first issues', async () => {
const result = await mapGoodFirstIssues(issues);
expect(result[0]).toMatchObject({
Expand Down