mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[git actions] Check all branches
This commit is contained in:
@ -66,10 +66,10 @@ const dbTypes = {
|
||||
number: 'INT',
|
||||
string: 'VARCHAR(50)'
|
||||
},
|
||||
number () {
|
||||
number() {
|
||||
return this[cfgDbType].number;
|
||||
},
|
||||
string () {
|
||||
string() {
|
||||
return this[cfgDbType].string;
|
||||
}
|
||||
};
|
||||
|
||||
@ -23,7 +23,7 @@ const getStatusCode = response => response.statusCode || response.status;
|
||||
|
||||
function createMockContext(overrides = {}) {
|
||||
const defaultCtx = {
|
||||
getCfg (key, _) {
|
||||
getCfg(key, _) {
|
||||
switch (key) {
|
||||
case 'services.CoAuthoring.requestDefaults':
|
||||
return {
|
||||
@ -65,14 +65,14 @@ function createMockContext(overrides = {}) {
|
||||
}
|
||||
},
|
||||
logger: {
|
||||
debug () {}
|
||||
debug() {}
|
||||
}
|
||||
};
|
||||
|
||||
// Return a mock context with overridden values if any
|
||||
return {
|
||||
...defaultCtx,
|
||||
getCfg (key, _) {
|
||||
getCfg(key, _) {
|
||||
// Return the override if it exists
|
||||
if (overrides[key]) {
|
||||
return overrides[key];
|
||||
|
||||
Reference in New Issue
Block a user