UNPKG

component-dbs-core

Version:

DTO objects shared among device backend

45 lines 2.16 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 testing_1 = require("@nestjs/testing"); const config_1 = require("@nestjs/config"); const devices_1 = require("../devices"); const transactionService_1 = require("./transactionService"); const common_services_1 = require("../common_services"); describe('transaction module test suite', () => { let service; beforeAll(() => __awaiter(void 0, void 0, void 0, function* () { const moduleRef = yield testing_1.Test.createTestingModule({ imports: [ config_1.ConfigModule.forRoot({ isGlobal: true, }), ], providers: [ common_services_1.EnvironmentService, transactionService_1.TransactionService, devices_1.DeviceService, devices_1.DeviceVerification, common_services_1.AppSyncClient, devices_1.DeviceMetrics, common_services_1.DynamodbService, common_services_1.LambdaService, common_services_1.DynamodbUtils, common_services_1.AppSyncUtils, ], }).compile(); service = yield moduleRef.get(transactionService_1.TransactionService); })); it('should be able to ineject transaction service', () => { expect(service).not.toBeUndefined(); }); }); //# sourceMappingURL=transactionModule.spec.js.map