feat: more work on calendar - now with heatmap
This commit is contained in:
1 parent
947b1250e3
commit
1ed15c40c2
5 files changed
+166
-71
No files matched your search
@@ -400,6 +400,13 @@ describe('BlogGenerationEngine', () => {
|
||||
expect(indexHtml).toContain('href="/assets/vanilla-calendar.min.css"');
|
||||
expect(indexHtml).toContain('src="/assets/vanilla-calendar.min.js"');
|
||||
expect(indexHtml).toContain('src="/assets/calendar-runtime.js"');
|
||||
|
||||
const calendarRuntime = await readFile(path.join(tempDir, 'html', 'assets', 'calendar-runtime.js'), 'utf-8');
|
||||
expect(calendarRuntime).toContain('--blog-calendar-heat-hue');
|
||||
expect(calendarRuntime).toContain('--blog-calendar-heat-alpha');
|
||||
expect(calendarRuntime).toContain('onCreateMonthEls');
|
||||
expect(calendarRuntime).toContain('onCreateYearEls');
|
||||
expect(calendarRuntime).not.toContain('blog-calendar-post-count');
|
||||
});
|
||||
|
||||
it('generates root index.html for published posts', async () => {
|
||||
|
||||
Reference in new issue
Block a user