mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
adding missing names to the test cases
This commit is contained in:
parent
dc42ba890d
commit
bb6cb22cdc
10
node_modules/frontdoor/lib/api_test.js
generated
vendored
10
node_modules/frontdoor/lib/api_test.js
generated
vendored
@ -5,7 +5,7 @@
|
||||
require("amd-loader");
|
||||
|
||||
|
||||
var assert = require("assert");
|
||||
var assert = require("assert-diff");
|
||||
var sinon = require("sinon");
|
||||
|
||||
var Api = require("./api");
|
||||
@ -405,16 +405,19 @@ module.exports = {
|
||||
"method": "put",
|
||||
"params": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "/\\d{4}/",
|
||||
"source": "url",
|
||||
"optional": false
|
||||
},
|
||||
"name": {
|
||||
"name": "name",
|
||||
"type": "string",
|
||||
"source": "body",
|
||||
"optional": false
|
||||
},
|
||||
"age": {
|
||||
"name": "age",
|
||||
"type": "int",
|
||||
"source": "body",
|
||||
"optional": true
|
||||
@ -426,6 +429,7 @@ module.exports = {
|
||||
"method": "delete",
|
||||
"params": {
|
||||
"id": {
|
||||
"name": "id",
|
||||
"type": "string",
|
||||
"source": "url",
|
||||
"optional": false
|
||||
@ -436,8 +440,8 @@ module.exports = {
|
||||
}
|
||||
]
|
||||
};
|
||||
assert.equal(JSON.stringify(description), JSON.stringify(expected));
|
||||
|
||||
assert.equal(JSON.stringify(description), JSON.stringify(expected));
|
||||
},
|
||||
|
||||
"test handler with two arguments should be treated as function(params, callback) {}": function() {
|
||||
@ -469,8 +473,6 @@ module.exports = {
|
||||
assert(called);
|
||||
}
|
||||
|
||||
// test checks can be async
|
||||
// fromString, fromJson
|
||||
};
|
||||
|
||||
!module.parent && require("asyncjs").test.testcase(module.exports).exec();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user