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.
17 lines
440 B
JavaScript
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);
|
|
});
|
|
});
|