Skip to content

Commit

Permalink
refactor: adjust the file directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixiaorui committed Feb 7, 2024
1 parent e95c95b commit b55dbbf
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { JwtModule } from '@nestjs/jwt';
import { RankService } from '../rank/rank.service';
import { UserProgressService } from '../user-progress/user-progress.service';
import { CourseController } from './course.controller';
import { CourseService } from './course.service';
import { RankService } from '../../rank/rank.service';
import { UserProgressService } from '../../user-progress/user-progress.service';
import { CourseController } from '../course.controller';
import { CourseService } from '../course.service';
import { Test } from '@nestjs/testing';
import { MockRedisModule } from '../../tests/helper/mockRedis';
import { createUser } from '../../tests/fixture/user';
import { createFirstCourse } from '../../tests/fixture/course';
import { GlobalModule } from '../global/global.mudule';
import { MockRedisModule } from '../../../test/helper/mockRedis';
import { createUser } from '../../../test/fixture/user';
import { createFirstCourse } from '../../../test/fixture/course';
import { GlobalModule } from '../../global/global.mudule';

const user = createUser();
const course = createFirstCourse();
Expand Down
6 changes: 3 additions & 3 deletions apps/api/src/course/tests/course.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Test, TestingModule } from '@nestjs/testing';
import { AppModule } from '../../app/app.module';
import { INestApplication } from '@nestjs/common';
import { cleanDB } from '../../../tests/helper/utils';
import { cleanDB } from '../../../test/helper/utils';
import { DbType, DB } from '../../global/providers/db.provider';
import {
createFirstCourse,
createSecondCourse,
} from '../../../tests/fixture/course';
import { createStatement } from '../../../tests/fixture/statement';
} from '../../../test/fixture/course';
import { createStatement } from '../../../test/fixture/statement';
import { course, statement } from '@earthworm/shared';
import * as request from 'supertest';
import { endDB } from '../../common/db';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { JwtModule } from '@nestjs/jwt';
import { RankService } from '../rank/rank.service';
import { UserProgressService } from '../user-progress/user-progress.service';
import { CourseService } from './course.service';
import { RankService } from '../../rank/rank.service';
import { UserProgressService } from '../../user-progress/user-progress.service';
import { CourseService } from '../course.service';
import { Test } from '@nestjs/testing';
import { MockRedisModule } from '../../tests/helper/mockRedis';
import { type DbType, DB } from '../global/providers/db.provider';
import { MockRedisModule } from '../../../test/helper/mockRedis';
import { type DbType, DB } from '../../global/providers/db.provider';
import { course, statement } from '@earthworm/shared';
import { HttpException } from '@nestjs/common';
import { createUser } from '../../tests/fixture/user';
import { GlobalModule } from '../global/global.mudule';
import { createUser } from '../../../test/fixture/user';
import { GlobalModule } from '../../global/global.mudule';
import {
createFirstCourse,
createSecondCourse,
} from '../../tests/fixture/course';
import { createStatement } from '../../tests/fixture/statement';
import { cleanDB, startDB } from '../../tests/helper/utils';
import { endDB } from '../../src/common/db';
} from '../../../test/fixture/course';
import { createStatement } from '../../../test/fixture/statement';
import { cleanDB, startDB } from '../../../test/helper/utils';
import { endDB } from '../../common/db';

const user = createUser();
const firstCourse = createFirstCourse();
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/course/courses.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"title":"第一课","fileName":"01","cId":1},{"title":"第二课","fileName":"02","cId":2},{"title":"第三课","fileName":"03","cId":3},{"title":"第四课","fileName":"04","cId":4},{"title":"第五课","fileName":"05","cId":5},{"title":"第五.五课","fileName":"05.5","cId":6},{"title":"第六课","fileName":"06","cId":7},{"title":"第七课","fileName":"07","cId":8},{"title":"第八课","fileName":"08","cId":9},{"title":"第九课","fileName":"09","cId":10},{"title":"第十课","fileName":"10","cId":11},{"title":"第十一课","fileName":"11","cId":12},{"title":"第十二课","fileName":"12","cId":13},{"title":"第十三课","fileName":"13","cId":14},{"title":"第十四课","fileName":"14","cId":15},{"title":"第十五课","fileName":"15","cId":16},{"title":"第十五.五课","fileName":"15.5","cId":17},{"title":"第十六课","fileName":"16","cId":18},{"title":"第十七课","fileName":"17","cId":19},{"title":"第十八课","fileName":"18","cId":20},{"title":"第十九课","fileName":"19","cId":21},{"title":"第二十课","fileName":"20","cId":22},{"title":"第二十.五课","fileName":"20.5","cId":23},{"title":"第二十一课","fileName":"21","cId":24},{"title":"第二十二课","fileName":"22","cId":25},{"title":"第二十三课","fileName":"23","cId":26},{"title":"第二十四课","fileName":"24","cId":27},{"title":"第二十五课","fileName":"25","cId":28},{"title":"第二十五.五课","fileName":"25.5","cId":29},{"title":"第二十六课","fileName":"26","cId":30},{"title":"第二十七课","fileName":"27","cId":31},{"title":"第二十八课","fileName":"28","cId":32},{"title":"第二十九课","fileName":"29","cId":33},{"title":"第三十课","fileName":"30","cId":34},{"title":"第三十一课","fileName":"31","cId":35},{"title":"第三十二课","fileName":"32","cId":36},{"title":"第三十三课","fileName":"33","cId":37},{"title":"第三十四课","fileName":"34","cId":38},{"title":"第三十五课","fileName":"35","cId":39},{"title":"第三十六课","fileName":"36","cId":40},{"title":"第三十七课","fileName":"37","cId":41},{"title":"第三十八课","fileName":"38","cId":42},{"title":"第三十九课","fileName":"39","cId":43},{"title":"第四十课","fileName":"40","cId":44},{"title":"第四十一课","fileName":"41","cId":45},{"title":"第四十二课","fileName":"42","cId":46},{"title":"第四十三课","fileName":"43","cId":49},{"title":"第四十四课","fileName":"44","cId":50},{"title":"第四十五课","fileName":"45","cId":51}]
[{"title":"第一课","fileName":"01","cId":1},{"title":"第二课","fileName":"02","cId":2},{"title":"第三课","fileName":"03","cId":3},{"title":"第四课","fileName":"04","cId":4},{"title":"第五课","fileName":"05","cId":5},{"title":"第五.五课","fileName":"05.5","cId":6},{"title":"第六课","fileName":"06","cId":7},{"title":"第七课","fileName":"07","cId":8},{"title":"第八课","fileName":"08","cId":9},{"title":"第九课","fileName":"09","cId":10},{"title":"第十课","fileName":"10","cId":11},{"title":"第十一课","fileName":"11","cId":12},{"title":"第十二课","fileName":"12","cId":13},{"title":"第十三课","fileName":"13","cId":14},{"title":"第十四课","fileName":"14","cId":15},{"title":"第十五课","fileName":"15","cId":16},{"title":"第十五.五课","fileName":"15.5","cId":17},{"title":"第十六课","fileName":"16","cId":18},{"title":"第十七课","fileName":"17","cId":19},{"title":"第十八课","fileName":"18","cId":20},{"title":"第十九课","fileName":"19","cId":21},{"title":"第二十课","fileName":"20","cId":22},{"title":"第二十.五课","fileName":"20.5","cId":23},{"title":"第二十一课","fileName":"21","cId":24},{"title":"第二十二课","fileName":"22","cId":25},{"title":"第二十三课","fileName":"23","cId":26},{"title":"第二十四课","fileName":"24","cId":27},{"title":"第二十五课","fileName":"25","cId":28},{"title":"第二十五.五课","fileName":"25.5","cId":29},{"title":"第二十六课","fileName":"26","cId":30},{"title":"第二十七课","fileName":"27","cId":31},{"title":"第二十八课","fileName":"28","cId":32},{"title":"第二十九课","fileName":"29","cId":33},{"title":"第三十课","fileName":"30","cId":34},{"title":"第三十一课","fileName":"31","cId":35},{"title":"第三十二课","fileName":"32","cId":36},{"title":"第三十三课","fileName":"33","cId":37},{"title":"第三十四课","fileName":"34","cId":38},{"title":"第三十五课","fileName":"35","cId":39},{"title":"第三十六课","fileName":"36","cId":40},{"title":"第三十七课","fileName":"37","cId":41},{"title":"第三十八课","fileName":"38","cId":42},{"title":"第三十九课","fileName":"39","cId":43},{"title":"第四十课","fileName":"40","cId":44},{"title":"第四十一课","fileName":"41","cId":45},{"title":"第四十二课","fileName":"42","cId":46},{"title":"第四十三课","fileName":"43","cId":47},{"title":"第四十四课","fileName":"44","cId":48},{"title":"第四十五课","fileName":"45","cId":49}]

0 comments on commit b55dbbf

Please sign in to comment.