|
1 | | -var PUBNUB, channel, here_now_test, history_test, nodeunit, publish_dummy, publish_test, pubnub, run_dummy_subscribe, subscribe_test, time_test, uuid_test, detailed_history_test_1, detailed_history_test_2, detailed_history_test_3; |
| 1 | +var PUBNUB, channel, here_now_test, history_test, nodeunit, publish_dummy, publish_test, pubnub, run_dummy_subscribe, |
| 2 | + subscribe_test, time_test, uuid_test, detailed_history_test_1; |
2 | 3 |
|
3 | 4 | PUBNUB = require('../pubnub'); |
4 | 5 |
|
@@ -67,38 +68,6 @@ detailed_history_test_1 = function (test) { |
67 | 68 | }); |
68 | 69 | }; |
69 | 70 |
|
70 | | -detailed_history_test_2 = function (test) { |
71 | | - |
72 | | - test.expect(2); |
73 | | - |
74 | | - return pubnub.history({ |
75 | | - count:1, |
76 | | - channel:temp_channel, |
77 | | - callback:function (messages) { |
78 | | - test.notEqual(messages, null); |
79 | | - test.equal(messages[0][0], "second"); |
80 | | - test.done(); |
81 | | - } |
82 | | - }); |
83 | | -}; |
84 | | - |
85 | | -detailed_history_test_3 = function (test) { |
86 | | - |
87 | | - test.expect(2); |
88 | | - |
89 | | - return pubnub.history({ |
90 | | - count:1, |
91 | | - channel:temp_channel, |
92 | | - reverse:'true', |
93 | | - callback:function (messages) { |
94 | | - test.notEqual(messages, null); |
95 | | - test.equal(messages[0][0], "first"); |
96 | | - test.done(); |
97 | | - } |
98 | | - }); |
99 | | -}; |
100 | | - |
101 | | - |
102 | 71 | history_test = function (test) { |
103 | 72 | test.expect(2); |
104 | 73 | return pubnub.history({ |
@@ -171,7 +140,5 @@ module.exports = { |
171 | 140 | "UUID Test": uuid_test, |
172 | 141 | "Here Now Test":here_now_test, |
173 | 142 | "Detailed History Test 1":detailed_history_test_1, |
174 | | - "Detailed History Test 2":detailed_history_test_2, |
175 | | - "Detailed History Test 3":detailed_history_test_3, |
176 | 143 | "Subscribe Test": subscribe_test |
177 | 144 | }; |
0 commit comments