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
4 changes: 2 additions & 2 deletions _data/conferences.yml
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@
start: 2025-09-12
end: 2025-09-16
sponsor: https://2025.pycon.org.au/sponsor/
mastodon: https://fosstodon.org/@pyconau
mastodon: https://mastodon.pycon.org.au/@pyconau
sub: PY
location:
- title: PyCon Australia 2025
Expand Down Expand Up @@ -863,7 +863,7 @@
place: Brisbane, Australia
start: 2026-08-26
end: 2026-08-30
mastodon: https://fosstodon.org/@pyconau
mastodon: https://mastodon.pycon.org.au/@pyconau
bluesky: https://bsky.app/profile/pyconau.bsky.social
sub: PY
location:
Expand Down
2 changes: 0 additions & 2 deletions _pages/my-conferences.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,5 +265,3 @@ <h6>Series Notifications:</h6>
<div id="toast-container" style="position: fixed; top: 80px; right: 20px; z-index: 9999;">
<!-- Toasts will be added here dynamically -->
</div>


16 changes: 8 additions & 8 deletions tests/frontend/unit/countdown-simple.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ describe('Countdown Timer System', () => {
}))
};
});

window.luxon.DateTime.fromSQL = fromSQLMock;
window.luxon.DateTime.fromISO = jest.fn(() => ({ invalid: true })); // Also mock fromISO to fail

Expand Down Expand Up @@ -490,7 +490,7 @@ describe('Countdown Timer System', () => {
describe('Visibility API Integration', () => {
test('stops timer when page becomes hidden', () => {
const clearIntervalSpy = jest.spyOn(global, 'clearInterval');

document.body.innerHTML = `
<div class="countdown-display"
data-deadline="2024-01-22 23:59:59">
Expand All @@ -507,7 +507,7 @@ describe('Countdown Timer System', () => {
writable: true,
value: true
});

const event = new Event('visibilitychange');
document.dispatchEvent(event);

Expand All @@ -516,7 +516,7 @@ describe('Countdown Timer System', () => {

test('restarts timer when page becomes visible', () => {
const setIntervalSpy = jest.spyOn(global, 'setInterval');

document.body.innerHTML = `
<div class="countdown-display"
data-deadline="2024-01-22 23:59:59">
Expand Down Expand Up @@ -580,7 +580,7 @@ describe('Countdown Timer System', () => {

test('destroy method clears timer', () => {
const clearIntervalSpy = jest.spyOn(global, 'clearInterval');

document.body.innerHTML = `
<div class="countdown-display"
data-deadline="2024-01-22 23:59:59">
Expand All @@ -603,7 +603,7 @@ describe('Countdown Timer System', () => {
test('init clears existing timer before creating new one', () => {
const clearIntervalSpy = jest.spyOn(global, 'clearInterval');
const setIntervalSpy = jest.spyOn(global, 'setInterval');

document.body.innerHTML = `
<div class="countdown-display"
data-deadline="2024-01-22 23:59:59">
Expand Down Expand Up @@ -633,7 +633,7 @@ describe('Countdown Timer System', () => {

expect(window.CountdownManager.onFilterUpdate).toBeDefined();
expect(typeof window.CountdownManager.onFilterUpdate).toBe('function');

// Should not throw when called
expect(() => {
window.CountdownManager.onFilterUpdate();
Expand All @@ -645,7 +645,7 @@ describe('Countdown Timer System', () => {
test('waits for DOMContentLoaded when document is loading', () => {
// Save original readyState
const originalReadyState = document.readyState;

// Mock document.readyState
Object.defineProperty(document, 'readyState', {
configurable: true,
Expand Down
Loading