1
- const { VirtualAuthenticatorOptions, Transport, Protocol } = require ( "selenium-webdriver/lib/virtual_authenticator" ) ;
2
- const { suite } = require ( 'selenium-webdriver/testing' ) ;
1
+ const { VirtualAuthenticatorOptions, Transport, Protocol} = require ( "selenium-webdriver/lib/virtual_authenticator" ) ;
2
+ const { suite} = require ( 'selenium-webdriver/testing' ) ;
3
3
const assert = require ( 'assert' )
4
4
5
- suite ( function ( ) {
6
- describe ( 'Virtual authenticator options' , function ( ) {
5
+ suite ( function ( ) {
6
+ describe ( 'Virtual authenticator options' , function ( ) {
7
+ let options ;
7
8
8
- let options ;
9
+ it ( 'Virtual options' , async function ( ) {
10
+ options = new VirtualAuthenticatorOptions ( ) ;
11
+ options . setIsUserVerified ( true ) ;
12
+ options . setHasUserVerification ( true ) ;
13
+ options . setIsUserConsenting ( true ) ;
14
+ options . setTransport ( Transport [ 'USB' ] ) ;
15
+ options . setProtocol ( Protocol [ 'U2F' ] ) ;
16
+ options . setHasResidentKey ( false ) ;
9
17
10
- before ( async function ( ) {
11
- options = new VirtualAuthenticatorOptions ( ) ;
12
- } ) ;
13
-
14
- it ( 'Virtual options' , async function ( ) {
15
- options . setIsUserVerified ( true ) ;
16
- options . setHasUserVerification ( true ) ;
17
- options . setIsUserConsenting ( true ) ;
18
- options . setTransport ( Transport [ 'USB' ] ) ;
19
- options . setProtocol ( Protocol [ 'U2F' ] ) ;
20
- options . setHasResidentKey ( false ) ;
21
-
22
- assert ( Object . keys ( options ) . length === 6 ) ;
23
- } ) ;
24
-
25
- it ( 'User verified' , async function ( ) {
26
- options . setIsUserVerified ( true ) ;
18
+ assert ( Object . keys ( options ) . length === 6 ) ;
19
+ } ) ;
27
20
28
- assert ( options . toDict ( ) [ 'isUserVerified' ] ) ;
29
- } ) ;
21
+ it ( 'User verified' , async function ( ) {
22
+ options . setIsUserVerified ( true ) ;
30
23
24
+ assert ( options . toDict ( ) [ 'isUserVerified' ] ) ;
31
25
} ) ;
26
+
27
+ } ) ;
32
28
} ) ;
0 commit comments