NetBIOS.js 777 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * NetBIOS tests.
  3. *
  4. * @author bwhitn [brian.m.whitney@outlook.com]
  5. *
  6. * @copyright Crown Copyright 2017
  7. * @license Apache-2.0
  8. */
  9. import TestRegister from "../../TestRegister.js";
  10. TestRegister.addTests([
  11. {
  12. name: "Encode NetBIOS name",
  13. input: "The NetBIOS name",
  14. expectedOutput: "FEGIGFCAEOGFHEECEJEPFDCAGOGBGNGF",
  15. recipeConfig: [
  16. {
  17. op: "Encode NetBIOS Name",
  18. args: [65],
  19. },
  20. ],
  21. },
  22. {
  23. name: "Decode NetBIOS Name",
  24. input: "FEGIGFCAEOGFHEECEJEPFDCAGOGBGNGF",
  25. expectedOutput: "The NetBIOS name",
  26. recipeConfig: [
  27. {
  28. op: "Decode NetBIOS Name",
  29. args: [65],
  30. },
  31. ],
  32. },
  33. ]);