Permalink
Browse files

fixing script to run testling tests

  • Loading branch information...
1 parent c5ae915 commit 1c26ebe981aa570695814a3706ad6c9accd9f0c8 @devendram devendram committed Jan 11, 2013
Showing with 4 additions and 8 deletions.
  1. +2 −4 javascript/3.4/tests/test.js
  2. +2 −4 javascript/3.4/tests/test.sh
@@ -1,5 +1,4 @@
var test = require('testling');
-var PUBNUB = require('../pubnub-3.4');
var channel = 'unit-test-pubnub-channel';
test('PUBNUB JavaScript API', function (test) {
@@ -16,7 +15,6 @@ test('PUBNUB JavaScript API', function (test) {
test.ok(pubnub.publish);
test.ok(pubnub.subscribe);
test.ok(pubnub.history);
- test.ok(pubnub.detailedHistory);
test.ok(pubnub.time);
function publish_test() {
@@ -50,14 +48,14 @@ test('PUBNUB JavaScript API', function (test) {
channel : channel,
callback : function(messages) {
test.ok(messages);
- test.equal( messages[0].test, "test" );
+ test.equal( messages[0][0].test, "test" );
test.end();
}
});
}
function detailedHistory_test(history) {
- pubnub.detailedHistory({
+ pubnub.history({
count : 1,
channel : channel,
callback : function(messages) {
@@ -33,9 +33,7 @@ browsers=$browsers',safari/5.1'
echo -e "Testing: $browsers"
-noinstrument='pubnub-3.4.js,test.js'
-
-tar -cf- test.js ../pubnub-3.4.js | \
+cat ../pubnub-3.4-common.js ../pubnub-3.4.js test.js | \
curl -u $1 -sSNT- \
- "testling.com/?noinstrument=$noinstrument&browsers=$browsers"
+ "testling.com/?noinstrument&browsers=$browsers"

0 comments on commit 1c26ebe

Please sign in to comment.