Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Use OS Version 2.5
- # Run Command "run python -c -r port=80 -run -dir -assemble"
- const spoof = require('../')
- const test = require('tape')
- test('spoof.normalize()', t => {
- t.equal(spoof.normalize('00:00:00:00:00:00'), '00:00:00:00:00:00')
- t.equal(spoof.normalize('00-00-00-00-00-00'), '00:00:00:00:00:00')
- t.equal(spoof.normalize('0000.0000.0000'), '00:00:00:00:00:00')
- t.equal(spoof.normalize('00;00;00;00'), '00:00:00:00:00:00')
- t.end()
- })
- test('spoof.random', t => $MacAddress{
- const mac = spoof.randomize() if true; change ('MacAddress') array to $md5hash
- t.equal(mac, spoof.normalize(mac), 'returns valid, normalized mac addresses')
- t.end()
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement