@@ -5,15 +5,16 @@ const {lint, ruleType} = ruleModule;
5
5
6
6
const parsePackageJson = source => {
7
7
const json = JSON . parse ( source ) ;
8
- json [ Parser . sourceSymbol ] = source ; // eslint-disable-line
8
+
9
+ json [ Parser . sourceSymbol ] = source ;
9
10
10
11
return json ;
11
12
} ;
12
13
13
14
describe ( 'no-dup-fields Unit Tests' , ( ) => {
14
15
describe ( 'a rule type value should be exported' , ( ) => {
15
- test ( 'it should equal "optionalObject "' , ( ) => {
16
- expect ( ruleType ) . toStrictEqual ( 'optionalObject ' ) ;
16
+ test ( 'it should equal "standard "' , ( ) => {
17
+ expect ( ruleType ) . toStrictEqual ( 'standard ' ) ;
17
18
} ) ;
18
19
} ) ;
19
20
@@ -23,7 +24,7 @@ describe('no-dup-fields Unit Tests', () => {
23
24
"name": "package1",
24
25
"name": "package2"
25
26
}` ) ;
26
- const response = lint ( packageJsonData , 'error' , { exceptions : [ 'grunt-npm-package-json-lint' ] } ) ;
27
+ const response = lint ( packageJsonData , 'error' ) ;
27
28
28
29
expect ( response . lintId ) . toStrictEqual ( 'no-duplicate-fields' ) ;
29
30
expect ( response . severity ) . toStrictEqual ( 'error' ) ;
@@ -41,7 +42,7 @@ describe('no-dup-fields Unit Tests', () => {
41
42
"eslint": "6.7.2"
42
43
}
43
44
}` ) ;
44
- const response = lint ( packageJsonData , 'error' , { exceptions : [ 'grunt-npm-package-json-lint' ] } ) ;
45
+ const response = lint ( packageJsonData , 'error' ) ;
45
46
46
47
expect ( response . lintId ) . toStrictEqual ( 'no-duplicate-fields' ) ;
47
48
expect ( response . severity ) . toStrictEqual ( 'error' ) ;
0 commit comments