zeronet-protocol
Version:
ZeroNet protocol
24 lines (18 loc) • 448 B
JavaScript
/* eslint-env mocha */
const assert = require('assert')
const Protocol = require('..')
let msg
describe('protocol-buffers', () => {
it('should parse sample 1 correct', () => {
msg = new Protocol.PeerMSG({
protobuf: {
1: 'string name'
},
strict: {
name: 'string'
}
})
assert.equal(msg.proto.def, 'message PeerCmd {string name = 1 ;}', 'protoparse output not matching')
})
})