File tree 2 files changed +36
-3
lines changed
test/unit/cmap/wire_protocol
2 files changed +36
-3
lines changed Original file line number Diff line number Diff line change 1
- export const MIN_SUPPORTED_SERVER_VERSION = '2 .6' ;
2
- export const MAX_SUPPORTED_SERVER_VERSION = '5.0 ' ;
3
- export const MIN_SUPPORTED_WIRE_VERSION = 2 ;
1
+ export const MIN_SUPPORTED_SERVER_VERSION = '3 .6' ;
2
+ export const MAX_SUPPORTED_SERVER_VERSION = '5.1 ' ;
3
+ export const MIN_SUPPORTED_WIRE_VERSION = 6 ;
4
4
export const MAX_SUPPORTED_WIRE_VERSION = 13 ;
5
5
export const OP_REPLY = 1 ;
6
6
export const OP_UPDATE = 2001 ;
Original file line number Diff line number Diff line change
1
+ const { expect } = require ( 'chai' ) ;
2
+ const {
3
+ MIN_SUPPORTED_SERVER_VERSION ,
4
+ MAX_SUPPORTED_SERVER_VERSION ,
5
+ MIN_SUPPORTED_WIRE_VERSION ,
6
+ MAX_SUPPORTED_WIRE_VERSION
7
+ } = require ( '../../../../src/cmap/wire_protocol/constants' ) ;
8
+
9
+ describe ( 'Wire Protocol Constants' , function ( ) {
10
+ describe ( 'MIN_SUPPORTED_SERVER_VERSION' , function ( ) {
11
+ it ( 'returns 3.6' , function ( ) {
12
+ expect ( MIN_SUPPORTED_SERVER_VERSION ) . to . equal ( '3.6' ) ;
13
+ } ) ;
14
+ } ) ;
15
+
16
+ describe ( 'MAX_SUPPORTED_SERVER_VERSION' , function ( ) {
17
+ it ( 'returns 5.1' , function ( ) {
18
+ expect ( MAX_SUPPORTED_SERVER_VERSION ) . to . equal ( '5.1' ) ;
19
+ } ) ;
20
+ } ) ;
21
+
22
+ describe ( 'MIN_SUPPORTED_WIRE_VERSION' , function ( ) {
23
+ it ( 'returns 6' , function ( ) {
24
+ expect ( MIN_SUPPORTED_WIRE_VERSION ) . to . equal ( 6 ) ;
25
+ } ) ;
26
+ } ) ;
27
+
28
+ describe ( 'MAX_SUPPORTED_WIRE_VERSION' , function ( ) {
29
+ it ( 'returns 13' , function ( ) {
30
+ expect ( MAX_SUPPORTED_WIRE_VERSION ) . to . equal ( 13 ) ;
31
+ } ) ;
32
+ } ) ;
33
+ } ) ;
You can’t perform that action at this time.
0 commit comments