UNPKG
metadata-based-explorer1
Version:
latest (0.1.0)
0.1.0
Box UI Elements
developer.box.com/docs/box-ui-elements
box/box-ui-elements
metadata-based-explorer1
/
src
/
utils
/
__tests__
/
base64-test.js
10 lines
(8 loc)
•
259 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
hexToBase64
from
'../base64'
;
describe
(
'util/base64'
,
() =>
{
test
(
'should convert hex to Base64 correctly'
,
() =>
{
const
str =
'12AB34'
;
const
expectedB64 =
'Eqs0'
;
expect
(
hexToBase64
(str)).
toBe
(expectedB64); }); });