mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
ci: Simplify DB truncate in tests (no-changelog) (#5243)
This commit is contained in:
committed by
GitHub
parent
0c70a40317
commit
ac460aa841
@@ -675,20 +675,6 @@ export async function isInstanceOwnerSetUp() {
|
||||
// misc
|
||||
// ----------------------------------
|
||||
|
||||
/**
|
||||
* Categorize array items into two groups based on whether they pass a test.
|
||||
*/
|
||||
export const categorize = <T>(arr: T[], test: (str: T) => boolean) => {
|
||||
return arr.reduce<{ pass: T[]; fail: T[] }>(
|
||||
(acc, cur) => {
|
||||
test(cur) ? acc.pass.push(cur) : acc.fail.push(cur);
|
||||
|
||||
return acc;
|
||||
},
|
||||
{ pass: [], fail: [] },
|
||||
);
|
||||
};
|
||||
|
||||
export function getPostgresSchemaSection(
|
||||
schema = config.getSchema(),
|
||||
): PostgresSchemaSection | null {
|
||||
|
||||
Reference in New Issue
Block a user