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
2 changes: 1 addition & 1 deletion .github/workflows/pr-sort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Pixi
uses: prefix-dev/[email protected].0
uses: prefix-dev/[email protected].1

- name: Set variables
id: vars
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/recurring-sort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/checkout@v5

- name: Setup Pixi
uses: prefix-dev/[email protected].0
uses: prefix-dev/[email protected].1

- name: Run links command
run: pixi run sort
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