Skip to content

Commit

Permalink
chore: update git pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammedkamel committed Jan 3, 2025
1 parent 6fc71c5 commit abe720a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/bash

npx lint-staged

npm run test
4 changes: 2 additions & 2 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('MongooseCaseConverterPlugin', () => {

MongooseCaseConverterPlugin(schema);

const TestModel = mongoose.model('Test_Collection_Camel', schema);
const TestModel = mongoose.model('TestCollectionCamel', schema);

await TestModel.create({ name: 'test' });

Expand All @@ -43,7 +43,7 @@ describe('MongooseCaseConverterPlugin', () => {
namingConvention: NamingConvention.SnakeCase,
});

const TestModel = mongoose.model('TestCollectionSnake', schema);
const TestModel = mongoose.model('testCollectionSnake', schema);

await TestModel.create({ name: 'test' });

Expand Down

0 comments on commit abe720a

Please sign in to comment.