Skip to content

Commit 05c2614

Browse files
committed
adding one more test
1 parent e3cc749 commit 05c2614

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/websockets.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ describe('Solid-ws', function() {
4444
client.close()
4545
done()
4646
})
47+
it('should receive ack in the form `ack $uri`', function(done) {
48+
49+
var uri = 'http://example.com/myresource'
50+
client.send('sub ' + uri)
51+
client.on('message', function (msg) {
52+
assert.equal(msg, 'ack ' + uri)
53+
done()
54+
})
55+
})
4756
it('should receive ack for any resource given', function(done) {
4857

4958
var uris = [

0 commit comments

Comments
 (0)