feat: Show the build date on the loading banner of unreleased builds (#2659)

This commit is contained in:
Dermot Duffy authored and GitHub committed 2026-08-05 22:15:00 -07:00
1 parent c137f4c00c
commit 567690831c
7 files changed
+85 -5

No files matched your search

+11 -1
View File
@@ -1,6 +1,10 @@
import { describe, expect, it } from 'vitest';
import { getGitInfo, getReleaseVersion } from '../../src/utils/build-info';
import {
getGitInfo,
getReleaseVersion,
getUnreleasedBuildDate,
} from '../../src/utils/build-info';
// As these are running as tests, the won't be build substitutes so this only
// tests default/fallback values.
@@ -16,3 +20,9 @@ describe('getGitInfo', () => {
expect(getGitInfo()).toEqual({});
});
});
describe('getUnreleasedBuildDate', () => {
it('should report no build date for an unbuilt card', () => {
expect(getUnreleasedBuildDate()).toBeNull();
});
});