mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-12-06 20:07:04 +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>
21 lines
591 B
TypeScript
21 lines
591 B
TypeScript
// Copyright 2017-2026 @pezkuwi/x-textencoder authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
|
|
|
|
import { TextDecoder } from './fallback.js';
|
|
|
|
describe('TextDecoder (fallback)', (): void => {
|
|
it('decodes correctly', (): void => {
|
|
expect(
|
|
new TextDecoder().decode(new Uint8Array([97, 98, 99]))
|
|
).toEqual('abc');
|
|
});
|
|
|
|
it('decodes correctly (with constructor param)', (): void => {
|
|
expect(
|
|
new TextDecoder('utf-8').decode(new Uint8Array([97, 98, 99, 98, 97]))
|
|
).toEqual('abcba');
|
|
});
|
|
});
|