Skip to content

Commit

Permalink
sixes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelavoyan committed Jul 9, 2024
1 parent 22c9c24 commit 0be7f72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/sample-server/test/ImportTest.test.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { VCLEnvironment } from "@velocitycareerlabs/vnf-nodejs-wallet-sdk";
import { VCLEnvironment } from "@velocitycareerlabs/vnf-nodejs-wallet-sdk/src";

describe("Imports Test", () => {

test("testEnvironment", async () => {

expect(VCLEnvironment.DEV).toBeDefined();
expect(VCLEnvironment.Dev).toBeDefined();
});
});
14 changes: 9 additions & 5 deletions packages/sample-server/test/initalization.test.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
"use strict";
import { describe, expect, test, beforeAll, afterAll } from "@jest/globals";
import { afterAll, beforeAll, describe, expect, test } from "@jest/globals";
import app from "../src/App";
import { FastifyInstance } from "fastify";

import { VCLImpl } from "@velocitycareerlabs/vnf-nodejs-wallet-sdk/src/impl/VCLImpl";
import VCLInitializationDescriptor from "packages/sdk/src/api/entities/initialization/VCLInitializationDescriptor";
import {
VCLCryptoServicesDescriptor,
VCLInitializationDescriptor,
VCLXVnfProtocolVersion
} from "@velocitycareerlabs/vnf-nodejs-wallet-sdk/src";
import VCLCountries from "@velocitycareerlabs/vnf-nodejs-wallet-sdk/src/api/entities/VCLCountries";
import VCLEnvironment from "@velocitycareerlabs/vnf-nodejs-wallet-sdk/src/api/VCLEnvironment";
import VCLCryptoServicesDescriptor from "packages/sdk/src/api/entities/initialization/VCLCryptoServicesDescriptor";
import { JwtSignServiceMock } from "./mocks/jwt/JwtSignServiceMock";
import { JwtVerifyServiceMock } from "./mocks/jwt/JwtVerifyServiceMock";
import { KeyServiceMock } from "./mocks/key/KeyServiceMock";
Expand All @@ -25,7 +27,9 @@ describe("initalization flow", () => {

test("App initialization", async () => {
await vcl.initialize(
new VCLInitializationDescriptor(VCLEnvironment.DEV,
new VCLInitializationDescriptor(
VCLEnvironment.Dev,
VCLXVnfProtocolVersion.XVnfProtocolVersion2,
new VCLCryptoServicesDescriptor(
new KeyServiceMock(),
new JwtSignServiceMock(),
Expand Down

0 comments on commit 0be7f72

Please sign in to comment.