kopia lustrzana https://github.com/c9/core
fix unit test
rodzic
8635ad3557
commit
94c3148eaa
|
@ -67,18 +67,24 @@ function main(config, settings, options, callback) {
|
||||||
compress: options.compress,
|
compress: options.compress,
|
||||||
virtual: options.virtual
|
virtual: options.virtual
|
||||||
})
|
})
|
||||||
.concat({
|
|
||||||
consumes: [],
|
|
||||||
provides: ["cdn.build", "db"],
|
|
||||||
setup: function(options, imports, register) {
|
|
||||||
register(null, { "cdn.build": {}, "db": {} });
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.filter(function(p) {
|
.filter(function(p) {
|
||||||
var path = p.packagePath;
|
var path = p.packagePath;
|
||||||
return !path || path.indexOf("c9.db.redis/redis") == -1
|
return !path || path.indexOf("c9.db.redis/redis") == -1
|
||||||
&& path.indexOf("c9.static/build") == -1
|
&& path.indexOf("c9.static/build") == -1
|
||||||
&& path.indexOf("c9.api/health") == -1;
|
&& path.indexOf("c9.api/health") == -1;
|
||||||
|
})
|
||||||
|
.concat({
|
||||||
|
consumes: [],
|
||||||
|
provides: ["cdn.build", "db", "health"],
|
||||||
|
setup: function(options, imports, register) {
|
||||||
|
register(null, {
|
||||||
|
"cdn.build": {},
|
||||||
|
"db": {},
|
||||||
|
"health": {
|
||||||
|
addCheck: function() {}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue