Files
ShakaPlayer/test/util/time_utils_unit.js
Álvaro Velad Galván 4f62ce8b24 build: Reduce bundle size by deduplicating license headers (#10182)
Ensure generated bundles contain a single license header instead of
repeating the same notice across bundled modules.

Normalize all copyright years to 2016 and remove
duplicate license headers from generated bundles.

This reduces the final bundle size while preserving license information
in the distributed artifacts.
2026-06-05 12:43:28 +02:00

17 lines
440 B
JavaScript

/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
describe('TimeUtils', () => {
const TimeUtils = shaka.util.TimeUtils;
it('should convert NTP timestamp to UTC time', () => {
// NTP time starts at 1900-01-01T00:00:00Z
const ntpStart = -2208988800000;
expect(TimeUtils.convertNtp(0)).toBe(ntpStart);
expect(TimeUtils.convertNtp(1000)).toBe(ntpStart + 1000);
});
});