Skip to content

Commit

Permalink
fixing script to run testling tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Devendra committed Jan 11, 2013
1 parent c5ae915 commit 1c26ebe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions javascript/3.4/tests/test.js
@@ -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) {
Expand All @@ -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() {
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 2 additions & 4 deletions javascript/3.4/tests/test.sh
Expand Up @@ -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.