UNPKG

ntlm-parser

Version:

Check and understand the content of a NTLM message

16 lines 688 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const assert_1 = __importDefault(require("assert")); const misc_1 = require("../src/misc"); describe('Base64 Unit Test', () => { it('should decode base64', () => { }); const str = '02000001'; const base64 = Buffer.from(str, 'hex').toString('base64'); const arrayBuffer = misc_1.decode(base64); const str2 = Buffer.from(arrayBuffer).toString('hex'); assert_1.default.strictEqual(str, str2); }); //# sourceMappingURL=base64.spec.js.map