Browse Source

fix tests

activeAddress
Ivan Socolsky 10 years ago
parent
commit
50c217c994
  1. 10
      test/integration.js

10
test/integration.js

@ -218,10 +218,11 @@ describe('Copay server', function() {
it('should fail when requesting for non-existent copayer', function(done) {
CopayServer.getInstanceWithAuth({
copayerId: 'ads',
message: 'dummy',
signature: 'dummy',
message: TestData.message.text,
signature: TestData.message.signature,
}, function(err, server) {
err.should.contain('Copayer not found');
err.code.should.equal('NOTAUTHORIZED');
err.message.should.contain('Copayer not found');
done();
});
});
@ -233,7 +234,8 @@ describe('Copay server', function() {
message: 'dummy',
signature: 'dummy',
}, function(err, server) {
err.should.contain('Invalid signature');
err.code.should.equal('NOTAUTHORIZED');
err.message.should.contain('Invalid signature');
done();
});
});

Loading…
Cancel
Save