Skip to content

Commit

Permalink
cleaning up and fixing minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pshomov committed Jan 7, 2022
1 parent a0b95b0 commit 5a4d596
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
// NOTE: To run this locally, you'll need to portforward soffia and set
// the environment variable "SOFFIA_SOAP_URL" to https://localhost:8443
// kubectl port-forward svc/socat-soffia 8443:443 -n socat
// kubectl port-forward svc/socat-xroad 8088:80 -n socat
import { Test, TestingModule } from '@nestjs/testing'
import {
NationalRegistryModule,
EinstaklingarApi,
} from '@island.is/clients/national-registry-v2'
import {
createXRoadAPIPath,
XRoadMemberClass,
} from '@island.is/shared/utils/server'

import { LoggingModule } from '@island.is/logging'
import {
NationalRegistryModule,
EinstaklingarApi,
} from '@island.is/clients/national-registry-v2'

describe('is.island.external.national', async () => {
describe('is.island.external.national', () => {
let client: EinstaklingarApi
const XROAD_CLIENT = process.env.XROAD_CLIENT_ID!

beforeAll(async () => {
const module: TestingModule = await Test.createTestingModule({
imports: [
LoggingModule,
NationalRegistryModule.register({
xRoadPath: createXRoadAPIPath(
process.env.XROAD_BASE_PATH_WITH_ENV!,
Expand All @@ -31,7 +30,7 @@ describe('is.island.external.national', async () => {
}),
],
}).compile()
client = await module.get<EinstaklingarApi>(EinstaklingarApi)
client = await module.get(EinstaklingarApi)
})
it('should get user correctly', async () => {
const user = await client.einstaklingarGetEinstaklingur({
Expand Down
2 changes: 1 addition & 1 deletion apps/external-contracts-tests/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"outDir": "../../dist/out-tsc",
"module": "commonjs",
"types": ["jest", "node"],
"lib": ["ES2019"]
"lib": ["ES2019", "DOM"]
}
}
3 changes: 3 additions & 0 deletions apps/external-contracts-tests/tsconfig.spec.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./tsconfig.json"
}

0 comments on commit 5a4d596

Please sign in to comment.