Fix Tests

v1.18.x
RoiEX 9 years ago
parent 431f5e1f0f
commit eca150f392

@ -11,25 +11,25 @@ module.exports = function(Meta){
Meta.osd = {}; Meta.osd = {};
Meta.osd.build = function (callback) { Meta.osd.build = function (callback) {
var osdObject = { var osdObject = {
"OpenSearchDescription": [ OpenSearchDescription: [
{ {
_attr: { _attr: {
"xmlns": "http://a9.com/-/spec/opensearch/1.1/" xmlns: 'http://a9.com/-/spec/opensearch/1.1/',
} }
}, },
{ {
"ShortName": String(Meta.config.title || Meta.config.browserTitle || 'NodeBB') ShortName: String(Meta.config.title || Meta.config.browserTitle || 'NodeBB'),
}, },
{ {
"Description": String(Meta.config.description || '') Description: String(Meta.config.description || ''),
}, },
{ {
"Url": [ Url: [
{ {
_attr: { _attr: {
"type": "text/html", type: 'text/html',
"method": "get", method: 'get',
"template": nconf.get('url') + '/search?term={searchTerms}&in=titlesposts' template: nconf.get('url') + '/search?term={searchTerms}&in=titlesposts',
} }
} }
] ]
@ -37,5 +37,5 @@ module.exports = function(Meta){
] ]
}; };
fs.writeFile(osdFilePath, xml([osdObject], { declaration: true, indent: '\t' }), callback); fs.writeFile(osdFilePath, xml([osdObject], { declaration: true, indent: '\t' }), callback);
} };
}; };
Loading…
Cancel
Save