general code improvements
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
export const createPath = (...args: string[]): string => {
|
||||
return args.join('/')
|
||||
}
|
||||
Reference in New Issue
Block a user