Files
common/packages/util-crypto/src/base64/pad.spec.ts
T
2023-03-17 07:22:49 +02:00

15 lines
361 B
TypeScript

// Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals.d.ts" />
import { base64Pad } from './index.js';
describe('base64Pad', (): void => {
it('pads a utf-8 string', (): void => {
expect(
base64Pad('YWJjZA')
).toEqual('YWJjZA==');
});
});