Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[test] Update tests to reflect new lowerCase behavior
  • Loading branch information
jfhbrook committed Mar 19, 2012
1 parent c2d9437 commit 7b648e4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion node.js/test/commands/apps-test.js
Expand Up @@ -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' })
Expand Down
2 changes: 1 addition & 1 deletion node.js/test/commands/logs-test.js
Expand Up @@ -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"
Expand Down
16 changes: 8 additions & 8 deletions node.js/test/commands/users-test.js
Expand Up @@ -5,43 +5,43 @@ 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')
.reply(200, {}, { 'x-powered-by': 'Nodejitsu' })
}
)).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')
Expand Down

0 comments on commit 7b648e4

Please sign in to comment.