@@ -2,7 +2,7 @@ import '../../../src/types';
2
2
import 'types-mediawiki' ;
3
3
import BrowserHelper from '../../util/BrowserHelper' ;
4
4
5
- describe ( 'Utility (on-browser) function tests' , ( ) => {
5
+ describe ( 'wikiUtility (on-browser) function tests' , ( ) => {
6
6
7
7
let page : BrowserHelper ;
8
8
@@ -21,7 +21,7 @@ describe( 'Utility (on-browser) function tests', () => {
21
21
// Default test
22
22
expect (
23
23
page . evaluate ( ( ) => {
24
- return { ...window . deputy . util . normalizeTitle ( ) } ;
24
+ return { ...window . deputy . wikiUtil . normalizeTitle ( ) } ;
25
25
} )
26
26
) . resolves . toEqual ( {
27
27
fragment : null , namespace : 4 , title : 'Sandbox'
@@ -30,7 +30,7 @@ describe( 'Utility (on-browser) function tests', () => {
30
30
// String parse test (mainspace)
31
31
expect (
32
32
page . evaluate ( ( ) => {
33
- return { ...window . deputy . util . normalizeTitle (
33
+ return { ...window . deputy . wikiUtil . normalizeTitle (
34
34
'Main Page'
35
35
) } ;
36
36
} )
@@ -41,7 +41,7 @@ describe( 'Utility (on-browser) function tests', () => {
41
41
// String parse test (project space)
42
42
expect (
43
43
page . evaluate ( ( ) => {
44
- return { ...window . deputy . util . normalizeTitle (
44
+ return { ...window . deputy . wikiUtil . normalizeTitle (
45
45
'Wikipedia:Contributor copyright investigations'
46
46
) } ;
47
47
} )
@@ -52,7 +52,7 @@ describe( 'Utility (on-browser) function tests', () => {
52
52
// String parse test (subpage)
53
53
expect (
54
54
page . evaluate ( ( ) => {
55
- return { ...window . deputy . util . normalizeTitle (
55
+ return { ...window . deputy . wikiUtil . normalizeTitle (
56
56
'Wikipedia:Contributor copyright investigations/Example'
57
57
) } ;
58
58
} )
@@ -63,7 +63,7 @@ describe( 'Utility (on-browser) function tests', () => {
63
63
// String parse test (fragment)
64
64
expect (
65
65
page . evaluate ( ( ) => {
66
- return { ...window . deputy . util . normalizeTitle (
66
+ return { ...window . deputy . wikiUtil . normalizeTitle (
67
67
'Wikipedia:Contributor copyright investigations#Requests'
68
68
) } ;
69
69
} )
@@ -74,7 +74,7 @@ describe( 'Utility (on-browser) function tests', () => {
74
74
// mw.Title test
75
75
expect (
76
76
page . evaluate ( ( ) => {
77
- return { ...window . deputy . util . normalizeTitle (
77
+ return { ...window . deputy . wikiUtil . normalizeTitle (
78
78
new mw . Title ( 'Main Page' )
79
79
) } ;
80
80
} )
0 commit comments