Simplify a test
Protobufs are loaded already
This commit is contained in:
parent
74bfc9d04e
commit
7c25ff845b
1 changed files with 1 additions and 7 deletions
|
@ -21,14 +21,8 @@ describe('Protocol', function() {
|
|||
//exclusive
|
||||
it('works', function(done) {
|
||||
localStorage.clear();
|
||||
var PushMessageProto = dcodeIO.ProtoBuf.loadProtoFile(
|
||||
"protos/IncomingPushMessageSignal.proto"
|
||||
).build("textsecure.PushMessageContent");
|
||||
var IncomingMessageProto = dcodeIO.ProtoBuf.loadProtoFile(
|
||||
"protos/IncomingPushMessageSignal.proto"
|
||||
).build("textsecure.IncomingPushMessageSignal");
|
||||
|
||||
var text_message = new PushMessageProto();
|
||||
var text_message = new textsecure.protobuf.PushMessageContent();
|
||||
text_message.body = "Hi Mom";
|
||||
var server_message = {
|
||||
type: 4, // unencrypted
|
||||
|
|
Loading…
Reference in a new issue