Skip to content

Commit

Permalink
test: remove utils from expected folder to be generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Korzunin committed Sep 14, 2021
1 parent 6386f34 commit 6bc2d6d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,14 @@ describe('given prisma-sequelize-generator,', () => {

await generator.generate();

generator.stop();

const expectedDir = path.join(mockDir, 'sequelize');
expect(fs.existsSync(expectedDir)).toBe(true);
expect(fs.existsSync(path.join(expectedDir, 'index.ts'))).toBe(true);
expect(fs.existsSync(path.join(expectedDir, 'config.json'))).toBe(true);
expect(fs.existsSync(path.join(expectedDir, 'models', 'index.ts'))).toBe(true);
expect(fs.existsSync(path.join(expectedDir, 'models', 'Post.ts'))).toBe(true);
expect(fs.existsSync(path.join(expectedDir, 'models', 'User.ts'))).toBe(true);
expect(fs.existsSync(path.join(expectedDir, 'utils', 'index.ts'))).toBe(true);
expect(fs.existsSync(path.join(expectedDir, 'utils', 'find.ts'))).toBe(true);

generator.stop();
});
});

0 comments on commit 6bc2d6d

Please sign in to comment.