Fix security to authentication state test
The "None" authentication will directly progress past authentication, so it's not a good type for this test.
This commit is contained in:
parent
da75689f4c
commit
3ef57d1600
|
@ -1177,7 +1177,7 @@ describe('Remote Frame Buffer Protocol Client', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should transition to the Authentication state and continue on successful negotiation', function () {
|
it('should transition to the Authentication state and continue on successful negotiation', function () {
|
||||||
const authSchemes = [1, 1];
|
const authSchemes = [1, 2];
|
||||||
client._negotiateAuthentication = sinon.spy();
|
client._negotiateAuthentication = sinon.spy();
|
||||||
client._sock._websocket._receiveData(new Uint8Array(authSchemes));
|
client._sock._websocket._receiveData(new Uint8Array(authSchemes));
|
||||||
expect(client._rfbInitState).to.equal('Authentication');
|
expect(client._rfbInitState).to.equal('Authentication');
|
||||||
|
|
Loading…
Reference in New Issue