@@ -28,7 +28,6 @@ describe('getFramedEncryptStream', () => {
28
28
getCipher ,
29
29
{ } as any ,
30
30
( ) => { } ,
31
- false ,
32
31
{ } as any
33
32
)
34
33
expect ( test . _transform ) . is . a ( 'function' )
@@ -37,13 +36,13 @@ describe('getFramedEncryptStream', () => {
37
36
it ( 'Precondition: plaintextLength must be within bounds.' , ( ) => {
38
37
const getCipher : any = ( ) => { }
39
38
expect ( ( ) =>
40
- getFramedEncryptStream ( getCipher , { } as any , ( ) => { } , false , {
39
+ getFramedEncryptStream ( getCipher , { } as any , ( ) => { } , {
41
40
plaintextLength : - 1 ,
42
41
suite,
43
42
} )
44
43
) . to . throw ( Error , 'plaintextLength out of bounds.' )
45
44
expect ( ( ) =>
46
- getFramedEncryptStream ( getCipher , { } as any , ( ) => { } , false , {
45
+ getFramedEncryptStream ( getCipher , { } as any , ( ) => { } , {
47
46
plaintextLength : Number . MAX_SAFE_INTEGER + 1 ,
48
47
suite,
49
48
} )
@@ -53,7 +52,7 @@ describe('getFramedEncryptStream', () => {
53
52
* I want to make sure that I don't have an errant off by 1 error.
54
53
*/
55
54
expect ( ( ) =>
56
- getFramedEncryptStream ( getCipher , { } as any , ( ) => { } , false , {
55
+ getFramedEncryptStream ( getCipher , { } as any , ( ) => { } , {
57
56
plaintextLength : Number . MAX_SAFE_INTEGER ,
58
57
suite,
59
58
} )
@@ -62,7 +61,7 @@ describe('getFramedEncryptStream', () => {
62
61
63
62
it ( 'Precondition: Must not process more than plaintextLength.' , ( ) => {
64
63
const getCipher : any = ( ) => { }
65
- const test = getFramedEncryptStream ( getCipher , { } as any , ( ) => { } , false , {
64
+ const test = getFramedEncryptStream ( getCipher , { } as any , ( ) => { } , {
66
65
plaintextLength : 8 ,
67
66
suite,
68
67
} )
@@ -79,7 +78,6 @@ describe('getFramedEncryptStream', () => {
79
78
getCipher ,
80
79
{ frameLength } as any ,
81
80
( ) => { } ,
82
- false ,
83
81
{ } as any
84
82
)
85
83
@@ -114,7 +112,6 @@ describe('getEncryptFrame', () => {
114
112
encryptedDataKeys : [ ] ,
115
113
} ,
116
114
suite,
117
- utf8Sorting : false ,
118
115
}
119
116
const test1 = getEncryptFrame ( input )
120
117
expect ( test1 . content ) . to . equal ( input . pendingFrame . content )
@@ -149,7 +146,6 @@ describe('getEncryptFrame', () => {
149
146
encryptedDataKeys : [ ] ,
150
147
} ,
151
148
suite,
152
- utf8Sorting : false ,
153
149
}
154
150
155
151
expect ( ( ) => getEncryptFrame ( inputFinalFrameToLarge ) ) . to . throw (
@@ -176,7 +172,6 @@ describe('getEncryptFrame', () => {
176
172
encryptedDataKeys : [ ] ,
177
173
} ,
178
174
suite,
179
- utf8Sorting : false ,
180
175
}
181
176
182
177
// Make sure that it must be equal as long as we are here...
0 commit comments