UNPKG

@iota/pad

Version:

Padding utility

15 lines 648 B
"use strict"; exports.__esModule = true; var ava_1 = require("ava"); var src_1 = require("../src"); ava_1["default"]('padTrytes() adds padding to trytes.', function (t) { var trytes = 'IOTA'; var expected = 'IOTA99'; t.is(src_1.padTrytes(6)(trytes), expected, 'padTrits() should add padding to trytes.'); }); ava_1["default"]('padTrytes() returns the given string as is, if exceeds given length.', function (t) { var trytes = 'IOTA'; var expected = 'IOTA'; t.is(src_1.padTrytes(4)(trytes), expected, 'padTrits() should return the given string as is, if exceeds given length.'); }); //# sourceMappingURL=padTrytes.test.js.map