diff options
author | Kegan Dougal <kegan@matrix.org> | 2014-11-05 11:21:55 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2014-11-05 11:21:55 +0000 |
commit | 9f6d1b10ad5a9098a8f72157875ce97fc44bc423 (patch) | |
tree | eadbd0f5f69522608c98c3f53e220d926584dda5 /syweb/webclient/test/unit | |
parent | Add a bunch more unit tests for matrixService. (diff) | |
download | synapse-9f6d1b10ad5a9098a8f72157875ce97fc44bc423.tar.xz |
Be sure to urlencode/decode event types correctly in both the web client and HS.
Diffstat (limited to 'syweb/webclient/test/unit')
-rw-r--r-- | syweb/webclient/test/unit/matrix-service.spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/syweb/webclient/test/unit/matrix-service.spec.js b/syweb/webclient/test/unit/matrix-service.spec.js index 95a43057c4..b54163a641 100644 --- a/syweb/webclient/test/unit/matrix-service.spec.js +++ b/syweb/webclient/test/unit/matrix-service.spec.js @@ -238,7 +238,7 @@ describe('MatrixService', function() { homeserver: "http://example.com" }); var roomId = "!fh38hfwfwef:example.com"; - var eventType = "com.example.events.test"; + var eventType = "com.example.events.test:special@characters"; var content = { testing: "1 2 3" }; @@ -262,11 +262,11 @@ describe('MatrixService', function() { homeserver: "http://example.com" }); var roomId = "!fh38hfwfwef:example.com"; - var eventType = "com.example.events.test"; + var eventType = "com.example.events.test:special@characters"; var content = { testing: "1 2 3" }; - var stateKey = "version1"; + var stateKey = "version:1"; matrixService.sendStateEvent(roomId, eventType, content, stateKey).then( function(response) { expect(response.data).toEqual({}); |