Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
LinboLen committed Jul 6, 2024
1 parent b89495a commit 33cc6ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ jobs:
with:
node-version: 20
cache: 'yarn'
- uses: actions/cache@v2
id: yarn-cache
with:
path: |
node_modules
**/node_modules
key: "${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}"
restore-keys: "${{ runner.os }}-yarn-\n"
- run: yarn install --frozen-lockfile
- uses: nrwl/nx-set-shas@v4

Expand Down
5 changes: 2 additions & 3 deletions apps/startkit/src/app/app.controller.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { FedacoModule } from '@gradii/nest-fedaco';
import { Test, TestingModule } from '@nestjs/testing';

import { AppController } from './app.controller';
import { AppModule } from './app.module';

describe('AppController', () => {
let app: TestingModule;
Expand All @@ -13,7 +12,7 @@ describe('AppController', () => {
FedacoModule.forRoot({
default: {
driver: 'sqlite',
database: './tmp/example-nest-startkit.sqlite',
database: ':memory:',
},
}),
],
Expand All @@ -23,7 +22,7 @@ describe('AppController', () => {
});

describe('getData', () => {
it('should return "Hello API"', async () => {
it('should can add user', async () => {
const appController = app.get<AppController>(AppController);
await appController.initTable();
await appController.addUser();
Expand Down
4 changes: 1 addition & 3 deletions apps/startkit/src/app/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { faker } from '@faker-js/faker';
import { db, schema } from '@gradii/fedaco';
import { schema } from '@gradii/fedaco';
import { Controller, Get } from '@nestjs/common';
import { UserModel } from './models/user.model';

@Controller()
export class AppController {
constructor() {
}

@Get('/init-table')
async initTable() {
Expand Down

0 comments on commit 33cc6ff

Please sign in to comment.