general code improvements

This commit is contained in:
João Geonizeli
2022-07-09 11:12:29 -03:00
parent e0dd6c2307
commit b94dd8ee9b
11 changed files with 69 additions and 35 deletions

View File

@@ -2,7 +2,7 @@ import { DataSource } from "typeorm";
export const cleanDataSource = async (
dataSource: DataSource,
entityNames: string[]
entityNames: string[] = ["project", "user"]
) => {
if (process.env.NODE_ENV !== "test") {
throw new Error(

View File

@@ -1,3 +0,0 @@
export const createPath = (...args: string[]): string => {
return args.join('/')
}