From 7b648e4ef8321e7976e1e98543926987b225320a Mon Sep 17 00:00:00 2001 From: Joshua Holbrook Date: Mon, 19 Mar 2012 10:56:57 -0700 Subject: [PATCH] [test] Update tests to reflect new lowerCase behavior --- node.js/test/commands/apps-test.js | 2 +- node.js/test/commands/logs-test.js | 2 +- node.js/test/commands/users-test.js | 16 ++++++++-------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/node.js/test/commands/apps-test.js b/node.js/test/commands/apps-test.js index ef0c89c..1f11b12 100644 --- a/node.js/test/commands/apps-test.js +++ b/node.js/test/commands/apps-test.js @@ -16,7 +16,7 @@ vows.describe('apps').addBatch(makeApiCall( 'apps list myUser', function setup () { nock('http://api.mockjitsu.com') - .get('/apps/myUser') + .get('/apps/myuser') .reply(200, { apps: [] }, { 'x-powered-by': 'Nodejitsu' }) diff --git a/node.js/test/commands/logs-test.js b/node.js/test/commands/logs-test.js index 9471535..ef0ae97 100644 --- a/node.js/test/commands/logs-test.js +++ b/node.js/test/commands/logs-test.js @@ -18,7 +18,7 @@ vows.describe('logs').addBatch(makeApiCall( 'logs byUser myUser 50', function setup () { nock('http://api.mockjitsu.com') - .post('/logs/myUser', { + .post('/logs/myuser', { from: "NOW-1DAY", until: "NOW", rows: "50" diff --git a/node.js/test/commands/users-test.js b/node.js/test/commands/users-test.js index c248e38..60179a6 100644 --- a/node.js/test/commands/users-test.js +++ b/node.js/test/commands/users-test.js @@ -5,21 +5,21 @@ var vows = require('vows'), vows.describe('users').addBatch(makeApiCall( 'users create', - { username: 'adam' }, + { username: 'Adam' }, function setup () { nock('http://api.mockjitsu.com') - .post('/users/adam', { username: 'adam' }) + .post('/users/adam', { username: 'Adam' }) .reply(200, {}, { 'x-powered-by': 'Nodejitsu' }) } )).addBatch(makeApiCall( - 'users available eve', + 'users available Eve', function setup () { nock('http://api.mockjitsu.com') .get('/users/eve/available') .reply(200, {}, { 'x-powered-by': 'Nodejitsu' }) } )).addBatch(makeApiCall( - 'users view abraham', + 'users view Abraham', function setup () { nock('http://api.mockjitsu.com') .get('/users/abraham') @@ -27,21 +27,21 @@ vows.describe('users').addBatch(makeApiCall( } )).addBatch(makeApiCall( 'users confirm', - { username: 'noah' }, + { username: 'Noah' }, function setup () { nock('http://api.mockjitsu.com') - .post('/users/noah/confirm', { username: 'noah' }) + .post('/users/noah/confirm', { username: 'Noah' }) .reply(200, {}, { 'x-powered-by': 'Nodejitsu' }) } )).addBatch(makeApiCall( - 'users forgot job', + 'users forgot Job', function setup () { nock('http://api.mockjitsu.com') .post('/users/job/forgot', {}) .reply(200, {}, { 'x-powered-by': 'Nodejitsu' }) } )).addBatch(makeApiCall( - 'users update moses', + 'users update Moses', { prophet: true }, function setup () { nock('http://api.mockjitsu.com')