Commit 21505bd8 authored by fxa's avatar fxa

rebased

parent 2d83e08b
[submodule "uritemplate-test"]
path = uritemplate-test
url = git://github.com/uri-templates/uritemplate-test.git
...@@ -116,11 +116,9 @@ module.exports = (function () { ...@@ -116,11 +116,9 @@ module.exports = (function () {
'extended tests': function (test) { 'extended tests': function (test) {
runTestFile(test, path.join(SPEC_HOME, 'extended-tests.json')); runTestFile(test, path.join(SPEC_HOME, 'extended-tests.json'));
}, },
/* negative tests have invalid specs in it -- they were fixed in a later version of the test
'negative tests': function (test) { 'negative tests': function (test) {
runTestFile(test, path.join(SPEC_HOME, 'negative-tests.json')); runTestFile(test, path.join(SPEC_HOME, 'negative-tests.json'));
}, },
*/
'own tests': function (test) { 'own tests': function (test) {
runTestFile(test, 'own-testcases.json'); runTestFile(test, 'own-testcases.json');
} }
......
...@@ -27,7 +27,6 @@ module.exports = (function () { ...@@ -27,7 +27,6 @@ module.exports = (function () {
test.done(); test.done();
}, },
"empty lists with ? must show the name": function (test) { "empty lists with ? must show the name": function (test) {
console.log(JSON.stringify(test, null, 4));
var ve = new VariableExpression("{?empty}", operators.valueOf('?'), [ var ve = new VariableExpression("{?empty}", operators.valueOf('?'), [
{varname: 'empty', exploded: false, maxLength: null} {varname: 'empty', exploded: false, maxLength: null}
]); ]);
...@@ -35,7 +34,6 @@ module.exports = (function () { ...@@ -35,7 +34,6 @@ module.exports = (function () {
test.done(); test.done();
}, },
"exploded empty lists with ? must not show the name": function (test) { "exploded empty lists with ? must not show the name": function (test) {
console.log(JSON.stringify(test, null, 4));
var ve = new VariableExpression("{?empty*}", operators.valueOf('?'), [ var ve = new VariableExpression("{?empty*}", operators.valueOf('?'), [
{varname: 'empty', exploded: true, maxLength: null} {varname: 'empty', exploded: true, maxLength: null}
]); ]);
......
Subproject commit 6aad87eb6f7763e9806b9345dd90e697be6b1bbf
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment