auth débuts
This commit is contained in:
@@ -14,6 +14,7 @@ const users_module_1 = require("./users/users.module");
|
||||
const typeorm_1 = require("@nestjs/typeorm");
|
||||
const config_1 = require("@nestjs/config");
|
||||
const friendships_module_1 = require("./friendship/friendships.module");
|
||||
const authentication_controller_1 = require("./auth/authentication.controller");
|
||||
let AppModule = class AppModule {
|
||||
};
|
||||
AppModule = __decorate([
|
||||
@@ -32,7 +33,7 @@ AppModule = __decorate([
|
||||
synchronize: true,
|
||||
}),
|
||||
],
|
||||
controllers: [app_controller_1.AppController],
|
||||
controllers: [app_controller_1.AppController, authentication_controller_1.AuthenticationController],
|
||||
providers: [app_service_1.AppService],
|
||||
})
|
||||
], AppModule);
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qDAAiD;AACjD,+CAA2C;AAC3C,uDAAmD;AACnD,6CAAgD;AAChD,2CAA8C;AAC9C,wEAAoE;AAyB7D,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,SAAS;IArBrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,0BAAW;YACpB,sCAAiB;YAEjB,qBAAY,CAAC,OAAO,EAAE;YACtB,uBAAa,CAAC,OAAO,CAAC;gBACrB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;gBAC/B,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;gBACzC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;gBACnC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;gBACvC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;gBACvC,gBAAgB,EAAE,IAAI;gBAGtB,WAAW,EAAE,IAAI;aACjB,CAAC;SACJ;QACC,WAAW,EAAE,CAAC,8BAAa,CAAC;QAC5B,SAAS,EAAE,CAAC,wBAAU,CAAC;KACxB,CAAC;GACW,SAAS,CAAG;AAAZ,8BAAS"}
|
||||
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["../src/app.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,qDAAiD;AACjD,+CAA2C;AAC3C,uDAAmD;AACnD,6CAAgD;AAChD,2CAA8C;AAC9C,wEAAoE;AACpE,gFAA4E;AAuBrE,IAAM,SAAS,GAAf,MAAM,SAAS;CAAG,CAAA;AAAZ,SAAS;IArBrB,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,0BAAW;YACpB,sCAAiB;YAEjB,qBAAY,CAAC,OAAO,EAAE;YACtB,uBAAa,CAAC,OAAO,CAAC;gBACrB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;gBAC/B,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;gBACzC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;gBACnC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;gBACvC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;gBACvC,gBAAgB,EAAE,IAAI;gBAGtB,WAAW,EAAE,IAAI;aACjB,CAAC;SACJ;QACC,WAAW,EAAE,CAAC,8BAAa,EAAE,oDAAwB,CAAC;QACtD,SAAS,EAAE,CAAC,wBAAU,CAAC;KACxB,CAAC;GACW,SAAS,CAAG;AAAZ,8BAAS"}
|
||||
2
srcs/requirements/nestjs/api_back/dist/auth/authentication.controller.d.ts
vendored
Normal file
2
srcs/requirements/nestjs/api_back/dist/auth/authentication.controller.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare class AuthenticationController {
|
||||
}
|
||||
17
srcs/requirements/nestjs/api_back/dist/auth/authentication.controller.js
vendored
Normal file
17
srcs/requirements/nestjs/api_back/dist/auth/authentication.controller.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AuthenticationController = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
let AuthenticationController = class AuthenticationController {
|
||||
};
|
||||
AuthenticationController = __decorate([
|
||||
(0, common_1.Controller)('/')
|
||||
], AuthenticationController);
|
||||
exports.AuthenticationController = AuthenticationController;
|
||||
//# sourceMappingURL=authentication.controller.js.map
|
||||
1
srcs/requirements/nestjs/api_back/dist/auth/authentication.controller.js.map
vendored
Normal file
1
srcs/requirements/nestjs/api_back/dist/auth/authentication.controller.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"authentication.controller.js","sourceRoot":"","sources":["../../src/auth/authentication.controller.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAGpC,CAAA;AAHY,wBAAwB;IADpC,IAAA,mBAAU,EAAC,GAAG,CAAC;GACH,wBAAwB,CAGpC;AAHY,4DAAwB"}
|
||||
2
srcs/requirements/nestjs/api_back/dist/auth/authentication.module.d.ts
vendored
Normal file
2
srcs/requirements/nestjs/api_back/dist/auth/authentication.module.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare class AuthenticationModule {
|
||||
}
|
||||
22
srcs/requirements/nestjs/api_back/dist/auth/authentication.module.js
vendored
Normal file
22
srcs/requirements/nestjs/api_back/dist/auth/authentication.module.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AuthenticationModule = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
const users_module_1 = require("../users/users.module");
|
||||
const authentication_service_1 = require("./authentication.service");
|
||||
let AuthenticationModule = class AuthenticationModule {
|
||||
};
|
||||
AuthenticationModule = __decorate([
|
||||
(0, common_1.Module)({
|
||||
imports: [users_module_1.UsersModule],
|
||||
providers: [authentication_service_1.AuthenticationService],
|
||||
})
|
||||
], AuthenticationModule);
|
||||
exports.AuthenticationModule = AuthenticationModule;
|
||||
//# sourceMappingURL=authentication.module.js.map
|
||||
1
srcs/requirements/nestjs/api_back/dist/auth/authentication.module.js.map
vendored
Normal file
1
srcs/requirements/nestjs/api_back/dist/auth/authentication.module.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"authentication.module.js","sourceRoot":"","sources":["../../src/auth/authentication.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,wDAAqD;AACrD,qEAAiE;AAM1D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oBAAoB;IAJhC,IAAA,eAAM,EAAC;QACL,OAAO,EAAE,CAAC,0BAAW,CAAC;QACtB,SAAS,EAAE,CAAC,8CAAqB,CAAC;KACpC,CAAC;GACW,oBAAoB,CAAG;AAAvB,oDAAoB"}
|
||||
2
srcs/requirements/nestjs/api_back/dist/auth/authentication.service.d.ts
vendored
Normal file
2
srcs/requirements/nestjs/api_back/dist/auth/authentication.service.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare class AuthenticationService {
|
||||
}
|
||||
17
srcs/requirements/nestjs/api_back/dist/auth/authentication.service.js
vendored
Normal file
17
srcs/requirements/nestjs/api_back/dist/auth/authentication.service.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AuthenticationService = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
let AuthenticationService = class AuthenticationService {
|
||||
};
|
||||
AuthenticationService = __decorate([
|
||||
(0, common_1.Injectable)()
|
||||
], AuthenticationService);
|
||||
exports.AuthenticationService = AuthenticationService;
|
||||
//# sourceMappingURL=authentication.service.js.map
|
||||
1
srcs/requirements/nestjs/api_back/dist/auth/authentication.service.js.map
vendored
Normal file
1
srcs/requirements/nestjs/api_back/dist/auth/authentication.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"authentication.service.js","sourceRoot":"","sources":["../../src/auth/authentication.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;GACA,qBAAqB,CAAG;AAAxB,sDAAqB"}
|
||||
2
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.controller.d.ts
vendored
Normal file
2
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.controller.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare class AuthenticationController {
|
||||
}
|
||||
17
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.controller.js
vendored
Normal file
17
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.controller.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AuthenticationController = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
let AuthenticationController = class AuthenticationController {
|
||||
};
|
||||
AuthenticationController = __decorate([
|
||||
(0, common_1.Controller)('authentication')
|
||||
], AuthenticationController);
|
||||
exports.AuthenticationController = AuthenticationController;
|
||||
//# sourceMappingURL=authentication.controller.js.map
|
||||
1
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.controller.js.map
vendored
Normal file
1
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.controller.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"authentication.controller.js","sourceRoot":"","sources":["../../../src/auth/authentication/authentication.controller.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,wBAAwB;IADpC,IAAA,mBAAU,EAAC,gBAAgB,CAAC;GAChB,wBAAwB,CAAG;AAA3B,4DAAwB"}
|
||||
2
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.module.d.ts
vendored
Normal file
2
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.module.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare class AuthenticationModule {
|
||||
}
|
||||
17
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.module.js
vendored
Normal file
17
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.module.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AuthenticationModule = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
let AuthenticationModule = class AuthenticationModule {
|
||||
};
|
||||
AuthenticationModule = __decorate([
|
||||
(0, common_1.Module)({})
|
||||
], AuthenticationModule);
|
||||
exports.AuthenticationModule = AuthenticationModule;
|
||||
//# sourceMappingURL=authentication.module.js.map
|
||||
1
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.module.js.map
vendored
Normal file
1
srcs/requirements/nestjs/api_back/dist/auth/authentication/authentication.module.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"authentication.module.js","sourceRoot":"","sources":["../../../src/auth/authentication/authentication.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAGjC,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;CAAG,CAAA;AAAvB,oBAAoB;IADhC,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,oBAAoB,CAAG;AAAvB,oDAAoB"}
|
||||
2
srcs/requirements/nestjs/api_back/dist/authentication/authentication.service.d.ts
vendored
Normal file
2
srcs/requirements/nestjs/api_back/dist/authentication/authentication.service.d.ts
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare class AuthenticationService {
|
||||
}
|
||||
17
srcs/requirements/nestjs/api_back/dist/authentication/authentication.service.js
vendored
Normal file
17
srcs/requirements/nestjs/api_back/dist/authentication/authentication.service.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AuthenticationService = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
let AuthenticationService = class AuthenticationService {
|
||||
};
|
||||
AuthenticationService = __decorate([
|
||||
(0, common_1.Injectable)()
|
||||
], AuthenticationService);
|
||||
exports.AuthenticationService = AuthenticationService;
|
||||
//# sourceMappingURL=authentication.service.js.map
|
||||
1
srcs/requirements/nestjs/api_back/dist/authentication/authentication.service.js.map
vendored
Normal file
1
srcs/requirements/nestjs/api_back/dist/authentication/authentication.service.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"authentication.service.js","sourceRoot":"","sources":["../../src/authentication/authentication.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;CAAG,CAAA;AAAxB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;GACA,qBAAqB,CAAG;AAAxB,sDAAqB"}
|
||||
@@ -0,0 +1,2 @@
|
||||
export declare class AuthenticationController {
|
||||
}
|
||||
17
srcs/requirements/nestjs/api_back/dist/src/auth/authentication/authentication.controller.js
vendored
Normal file
17
srcs/requirements/nestjs/api_back/dist/src/auth/authentication/authentication.controller.js
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
||||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
||||
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.AuthenticationController = void 0;
|
||||
const common_1 = require("@nestjs/common");
|
||||
let AuthenticationController = class AuthenticationController {
|
||||
};
|
||||
AuthenticationController = __decorate([
|
||||
(0, common_1.Controller)('authentication')
|
||||
], AuthenticationController);
|
||||
exports.AuthenticationController = AuthenticationController;
|
||||
//# sourceMappingURL=authentication.controller.js.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"authentication.controller.js","sourceRoot":"","sources":["../../../../src/src/auth/authentication/authentication.controller.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA4C;AAGrC,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;CAAG,CAAA;AAA3B,wBAAwB;IADpC,IAAA,mBAAU,EAAC,gBAAgB,CAAC;GAChB,wBAAwB,CAAG;AAA3B,4DAAwB"}
|
||||
File diff suppressed because one or more lines are too long
@@ -5,8 +5,7 @@ import { UsersModule } from './users/users.module';
|
||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import { FriendshipsModule } from './friendship/friendships.module';
|
||||
import { RouterModule } from '@nestjs/core';
|
||||
import { routesForUsers } from './routes/routes';
|
||||
import { AuthenticationController } from './auth/authentication.controller';
|
||||
|
||||
@Module({
|
||||
imports: [UsersModule,
|
||||
@@ -26,7 +25,7 @@ import { routesForUsers } from './routes/routes';
|
||||
synchronize: true,
|
||||
}),
|
||||
],
|
||||
controllers: [AppController],
|
||||
controllers: [AppController, AuthenticationController],
|
||||
providers: [AppService],
|
||||
})
|
||||
export class AppModule {}
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { AuthenticationController } from './authentication.controller';
|
||||
|
||||
describe('AuthenticationController', () => {
|
||||
let controller: AuthenticationController;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
controllers: [AuthenticationController],
|
||||
}).compile();
|
||||
|
||||
controller = module.get<AuthenticationController>(AuthenticationController);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(controller).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,7 @@
|
||||
import { Controller } from '@nestjs/common';
|
||||
|
||||
@Controller('/')
|
||||
export class AuthenticationController {
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { UsersModule } from 'src/users/users.module';
|
||||
import { AuthenticationService } from './authentication.service';
|
||||
|
||||
@Module({
|
||||
imports: [UsersModule],
|
||||
providers: [AuthenticationService],
|
||||
})
|
||||
export class AuthenticationModule {}
|
||||
@@ -0,0 +1,18 @@
|
||||
import { Test, TestingModule } from '@nestjs/testing';
|
||||
import { AuthenticationService } from './authentication.service';
|
||||
|
||||
describe('AuthenticationService', () => {
|
||||
let service: AuthenticationService;
|
||||
|
||||
beforeEach(async () => {
|
||||
const module: TestingModule = await Test.createTestingModule({
|
||||
providers: [AuthenticationService],
|
||||
}).compile();
|
||||
|
||||
service = module.get<AuthenticationService>(AuthenticationService);
|
||||
});
|
||||
|
||||
it('should be defined', () => {
|
||||
expect(service).toBeDefined();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
@Injectable()
|
||||
export class AuthenticationService {}
|
||||
Reference in New Issue
Block a user