Skip to content

Commit 93a400a

Browse files
committed
fix: formatting for e2e test schemas
1 parent 7eea598 commit 93a400a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/cli/test/utils.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ import path from 'node:path';
55

66
const ZMODEL_PRELUDE = `datasource db {
77
provider = "sqlite"
8-
url = "file:./dev.db"
9-
}
10-
`;
8+
url = "file:./dev.db"
9+
}`;
1110

1211
export function createProject(zmodel: string, addPrelude = true) {
1312
const workDir = createTestProject();
1413
fs.mkdirSync(path.join(workDir, 'zenstack'), { recursive: true });
1514
const schemaPath = path.join(workDir, 'zenstack/schema.zmodel');
16-
fs.writeFileSync(schemaPath, addPrelude ? `${ZMODEL_PRELUDE}\n\n${zmodel}` : zmodel);
15+
fs.writeFileSync(schemaPath, addPrelude ? `${ZMODEL_PRELUDE}\n${zmodel}` : zmodel);
1716
return workDir;
1817
}
1918

0 commit comments

Comments
 (0)