Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MrBartusek committed Nov 22, 2023
1 parent a00b003 commit f11bbec
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ jobs:
codeql:
name: Perform CodeQL Analysis
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
steps:
- name: Checkout the repository
uses: actions/checkout@v3
Expand Down
20 changes: 10 additions & 10 deletions apps/api/src/models/inventory/inventory.service.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ import { Test, TestingModule } from '@nestjs/testing';
import { InventoryService } from './inventory.service';

describe('InventoryService', () => {
let service: InventoryService;
let service: InventoryService;

beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [InventoryService],
}).compile();
beforeEach(async () => {
const module: TestingModule = await Test.createTestingModule({
providers: [InventoryService],
}).compile();

service = module.get<InventoryService>(InventoryService);
});
service = module.get<InventoryService>(InventoryService);
});

it('should be defined', () => {
expect(service).toBeDefined();
});
it('should be defined', () => {
expect(service).toBeDefined();
});
});
9 changes: 4 additions & 5 deletions apps/api/src/models/warehouses/warehouses.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { Module } from '@nestjs/common';
import { WarehousesService } from './warehouses.service';
import { WarehousesController } from './warehouses.controller';
import { WarehouseRepository } from './warehouse.repository';
import { Warehouse, WarehouseSchema } from './schemas/warehouse.schema';
import { MongooseModule } from '@nestjs/mongoose';
import { OrganizationsModule } from '../organizations/organizations.module';
import { Warehouse, WarehouseSchema } from './schemas/warehouse.schema';
import { WarehouseRepository } from './warehouse.repository';
import { WarehousesController } from './warehouses.controller';
import { WarehousesService } from './warehouses.service';

@Module({
imports: [MongooseModule.forFeature([{ name: Warehouse.name, schema: WarehouseSchema }])],
Expand Down

0 comments on commit f11bbec

Please sign in to comment.