diff --git a/tests/swarm-test.js b/tests/swarm-test.js index f3f3d489..646f0545 100644 --- a/tests/swarm-test.js +++ b/tests/swarm-test.js @@ -72,6 +72,18 @@ experiment('BASE', function () { }) }) }) + test('Check for lastSeen', function (done) { + var protocol = '/sparkles/3.3.3' + + swarmB.registerHandler(protocol, function (stream) {}) + + swarmA.openStream(peerB, protocol, function (err, stream) { + expect(err).to.not.be.instanceof(Error) + expect(peerB.lastSeen).to.be.instanceof(Date) + done() + }) + }) + }) experiment('IDENTIFY', function () {