Skip to content

Commit 8fa8f2d

Browse files
fix: rename events.conroller.ts to events.controller.ts
Fixed filename typo (missing 't' in controller) and updated import. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 9441273 commit 8fa8f2d

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

File renamed without changes.

apps/backend/routes/events.route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { requirePermissions } from '@wxyc/authentication';
22
import { Router } from 'express';
3-
import * as serverEvents from '../controllers/events.conroller.js';
3+
import * as serverEvents from '../controllers/events.controller.js';
44

55
export const events_route = Router();
66

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import fs from 'fs';
2+
import path from 'path';
3+
4+
const CONTROLLERS_DIR = path.resolve(__dirname, '../../../apps/backend/controllers');
5+
6+
describe('controller filenames', () => {
7+
it('should not contain misspelled "conroller" in any filename', () => {
8+
const files = fs.readdirSync(CONTROLLERS_DIR);
9+
const misspelled = files.filter((f) => /conroller/i.test(f));
10+
11+
expect(misspelled).toEqual([]);
12+
});
13+
});

0 commit comments

Comments
 (0)