mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-10-29 13:49:49 +00:00
The header rule takes the current year as the end of the range, as upstream's does; 581 sources still ended at 2025, which failed lint. Lint never ran to completion here, so this went unseen. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
22 lines
511 B
TypeScript
22 lines
511 B
TypeScript
// Copyright 2017-2026 @pezkuwi/util authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
|
|
|
import { extractTime } from './index.js';
|
|
|
|
describe('extractTime', (): void => {
|
|
const milliseconds = 1e9 + 123;
|
|
|
|
it('extracts time components correctly', (): void => {
|
|
expect(extractTime(milliseconds))
|
|
.toEqual({
|
|
days: 11,
|
|
hours: 13,
|
|
milliseconds: 123,
|
|
minutes: 46,
|
|
seconds: 40
|
|
});
|
|
});
|
|
});
|