File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ import { CommunicationProtocolEnum } from "../../../src" ;
2
+ import { Settings } from "../../../src/utils/Settings.util" ;
3
+
4
+ describe ( 'Settings' , ( ) => {
5
+ describe ( 'getDefaultPort returns the correct default when' , ( ) => {
6
+ it ( 'communication protocol is GRPC' , ( ) => {
7
+ expect ( Settings . getDefaultPort ( CommunicationProtocolEnum . GRPC ) )
8
+ . toEqual ( Settings . getDefaultGrpcPort ( ) )
9
+ } ) ;
10
+ it ( 'communication protocol is HTTP' , ( ) => {
11
+ expect ( Settings . getDefaultPort ( CommunicationProtocolEnum . HTTP ) )
12
+ . toEqual ( Settings . getDefaultHttpPort ( ) )
13
+ } ) ;
14
+ } ) ;
15
+ describe ( 'getDefaultAppPort returns the correct default when' , ( ) => {
16
+ it ( 'communication protocol is GRPC' , ( ) => {
17
+ expect ( Settings . getDefaultAppPort ( CommunicationProtocolEnum . GRPC ) )
18
+ . toEqual ( Settings . getDefaultGrpcAppPort ( ) )
19
+ } ) ;
20
+ it ( 'communication protocol is HTTP' , ( ) => {
21
+ expect ( Settings . getDefaultAppPort ( CommunicationProtocolEnum . HTTP ) )
22
+ . toEqual ( Settings . getDefaultHttpAppPort ( ) )
23
+ } ) ;
24
+ } ) ;
25
+ } )
You can’t perform that action at this time.
0 commit comments