Add tests for oboe node function and remove superfluous oboe declaration.

This commit is contained in:
Matt Magurany
2015-09-04 22:08:15 -04:00
parent db28808cdd
commit 2d0fe2589b
2 changed files with 15 additions and 1 deletions
+15
View File
@@ -32,3 +32,18 @@ oboe('/content')
console.error('no such content');
}
});
oboe('friends.json')
.node('friend', function (parsedJson) {
console.log('friend parsed', parsedJson);
});
oboe('friends.json')
.node({
'friend': function (parsedJson) {
console.log('friend parsed', parsedJson);
},
'!': function (parsedJson) {
console.log('root parsed', parsedJson);
}
});
-1
View File
@@ -65,6 +65,5 @@ declare module oboe {
declare var oboe: oboe.OboeFunction;
declare module "oboe" {
var oboe: oboe.OboeFunction;
export = oboe;
}