1
- describe ( "Test URLSearchParamsImpl " , function ( ) {
1
+ describe ( "Test URLSearchParams " , function ( ) {
2
2
3
3
4
- it ( "Test URLSearchParamsImpl keys" , function ( ) {
5
- const params = new URLSearchParamsImpl ( "foo=1&bar=2" ) ;
4
+ it ( "Test URLSearchParams keys" , function ( ) {
5
+ const params = new URLSearchParams ( "foo=1&bar=2" ) ;
6
6
const keys = params . keys ( ) ;
7
7
expect ( keys [ 0 ] ) . toBe ( "foo" ) ;
8
8
expect ( keys [ 1 ] ) . toBe ( "bar" ) ;
9
9
} ) ;
10
10
11
- it ( "Test URLSearchParamsImpl values" , function ( ) {
12
- const params = new URLSearchParamsImpl ( "foo=1&bar=2" ) ;
11
+ it ( "Test URLSearchParams values" , function ( ) {
12
+ const params = new URLSearchParams ( "foo=1&bar=2" ) ;
13
13
const values = params . values ( ) ;
14
14
expect ( values [ 0 ] ) . toBe ( "1" ) ;
15
15
expect ( values [ 1 ] ) . toBe ( "2" ) ;
16
16
} ) ;
17
17
18
18
19
- it ( "Test URLSearchParamsImpl entries" , function ( ) {
20
- const params = new URLSearchParamsImpl ( "foo=1&bar=2" ) ;
19
+ it ( "Test URLSearchParams entries" , function ( ) {
20
+ const params = new URLSearchParams ( "foo=1&bar=2" ) ;
21
21
const entries = params . entries ( ) ;
22
22
expect ( entries [ 0 ] [ 0 ] ) . toBe ( "foo" ) ;
23
23
expect ( entries [ 0 ] [ 1 ] ) . toBe ( "1" ) ;
@@ -28,28 +28,28 @@ expect(entries[1][1]).toBe("2");
28
28
} ) ;
29
29
30
30
31
- it ( "Test URLSearchParamsImpl size" , function ( ) {
32
- const params = new URLSearchParamsImpl ( "foo=1&bar=2" ) ;
31
+ it ( "Test URLSearchParams size" , function ( ) {
32
+ const params = new URLSearchParams ( "foo=1&bar=2" ) ;
33
33
expect ( params . size ) . toBe ( 2 ) ;
34
34
} ) ;
35
35
36
- it ( "Test URLSearchParamsImpl append" , function ( ) {
37
- const params = new URLSearchParamsImpl ( "foo=1&bar=2" ) ;
36
+ it ( "Test URLSearchParams append" , function ( ) {
37
+ const params = new URLSearchParams ( "foo=1&bar=2" ) ;
38
38
params . append ( "first" , "Osei" ) ;
39
39
expect ( params . get ( "first" ) ) . toBe ( "Osei" ) ;
40
40
} ) ;
41
41
42
42
43
- it ( "Test URLSearchParamsImpl delete" , function ( ) {
44
- const params = new URLSearchParamsImpl ( "foo=1&bar=2" ) ;
43
+ it ( "Test URLSearchParams delete" , function ( ) {
44
+ const params = new URLSearchParams ( "foo=1&bar=2" ) ;
45
45
params . append ( "first" , "Osei" ) ;
46
46
params . delete ( "first" ) ;
47
47
expect ( params . get ( "first" ) ) . toBe ( undefined ) ;
48
48
} ) ;
49
49
50
50
51
- it ( "Test URLSearchParamsImpl has" , function ( ) {
52
- const params = new URLSearchParamsImpl ( "foo=1&bar=2" ) ;
51
+ it ( "Test URLSearchParams has" , function ( ) {
52
+ const params = new URLSearchParams ( "foo=1&bar=2" ) ;
53
53
expect ( params . has ( "foo" ) ) . toBe ( true ) ;
54
54
} ) ;
55
55
0 commit comments