-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
432 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
'use strict'; | ||
|
||
var testCases = []; | ||
|
||
if (process.browser) { | ||
if (require('faux-jax').support.xhr.cors) { | ||
testCases.push({ | ||
testName: 'client.assignUserIDs({userID, cluster}, cb)', | ||
object: 'client', | ||
methodName: 'assignUserIDs', | ||
callArguments: [{userIDs: ['one', 'two'], cluster: 'the big one'}], | ||
action: 'write', | ||
expectedRequest: { | ||
method: 'POST', | ||
body: {cluster: 'the big one', users: ['one', 'two']}, | ||
URL: {pathname: '/1/clusters/mapping/batch'} | ||
} | ||
}); | ||
} | ||
} else { | ||
testCases.push({ | ||
testName: 'client.assignUserIDs({userID, cluster}, cb)', | ||
object: 'client', | ||
methodName: 'assignUserIDs', | ||
callArguments: [{userIDs: ['one', 'two'], cluster: 'the big one'}], | ||
action: 'write', | ||
expectedRequest: { | ||
method: 'POST', | ||
body: {cluster: 'the big one', users: ['one', 'two']}, | ||
URL: {pathname: '/1/clusters/mapping/batch'} | ||
} | ||
}); | ||
} | ||
|
||
module.exports = testCases; |
Oops, something went wrong.