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

This commit is contained in:
Dermot Duffy
2026-08-05 22:15:00 -07:00
committed by GitHub
parent c137f4c00c
commit 567690831c
7 changed files with 85 additions and 5 deletions
+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();
});
});