test_macaddress.js 294 B

123456789
  1. const tap = require('tap')
  2. const macParse = require('../tools/util/mac_address_parse')
  3. tap.test('mac-normalize', function (childTest) {
  4. childTest.equal(macParse.pad_zeros('ff:1:22:10'), 'ff:01:22:10')
  5. childTest.equal(macParse.pad_zeros('ff:01:22:10'), 'ff:01:22:10')
  6. childTest.end()
  7. })