From 4e395b6b0261286f23a5cd42724a893071c2f044 Mon Sep 17 00:00:00 2001 From: Brian Deitte Date: Mon, 9 Nov 2015 11:35:34 -0500 Subject: [PATCH] Add unit test for new rtmp path changes --- test/unit/tech/flash-rtmp.test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/tech/flash-rtmp.test.js b/test/unit/tech/flash-rtmp.test.js index c0ff3642a..a9a7bccd8 100644 --- a/test/unit/tech/flash-rtmp.test.js +++ b/test/unit/tech/flash-rtmp.test.js @@ -22,6 +22,10 @@ test('test streamToParts', function() { ok(parts.connection === 'http://myurl.com/'); ok(parts.stream === 'streaming&/is/fun'); + parts = Flash.streamToParts('http://myurl.com/really?streaming=fun&really=fun'); + ok(parts.connection === 'http://myurl.com/'); + ok(parts.stream === 'really?streaming=fun&really=fun'); + parts = Flash.streamToParts('http://myurl.com/streaming/is/fun'); ok(parts.connection === 'http://myurl.com/streaming/is/'); ok(parts.stream === 'fun');