UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

33 lines 1.93 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); const core_1 = require("@nestjs/core"); const appModule_1 = require("./appModule"); const devices_1 = require("./devices"); const transactionService_1 = require("./transactions/transactionService"); const site_1 = require("./site"); const identityService_1 = require("./identity/service/identityService"); jest.mock('./devices/deviceService'); jest.mock('./devices/deviceVerification'); jest.mock('./transactions/transactionService'); jest.mock('./identity/service/identityService'); jest.mock('./common_services/dynamodb/dynamodbService'); describe('test suite', () => { it('should load app module', () => __awaiter(void 0, void 0, void 0, function* () { const app = yield core_1.NestFactory.createApplicationContext(appModule_1.AppModule); expect(app).not.toBe(null); expect(yield app.get(devices_1.DeviceService)).not.toBe(undefined); expect(yield app.get(transactionService_1.TransactionService)).not.toBe(undefined); expect(yield app.get(site_1.SiteService)).not.toBe(undefined); expect(yield app.get(identityService_1.IdentityService)).not.toBe(undefined); })); }); //# sourceMappingURL=appModule.spec.js.map