1
1
import { flattenPlugin } from '../../lib/plugin-api/util'
2
2
3
3
describe ( 'flattenPlugin' , ( ) => {
4
- test ( 'shoould hydrate plugin correctly' , ( ) => {
4
+ test ( 'should hydrate plugin correctly' , ( ) => {
5
5
const plugin = { name : 'a' , shortcut : 'a' , module : { enhanceAppFiles : 'file' } }
6
6
const hydratedPlugin = flattenPlugin ( plugin , { } , { } )
7
7
expect ( hydratedPlugin . name ) . toBe ( 'a' )
@@ -10,15 +10,15 @@ describe('flattenPlugin', () => {
10
10
expect ( hydratedPlugin . enhanceAppFiles ) . toBe ( 'file' )
11
11
} )
12
12
13
- test ( 'shoould set \'enabled\' to false when \'pluginOptions\' is set to false.' , ( ) => {
13
+ test ( 'should set \'enabled\' to false when \'pluginOptions\' is set to false.' , ( ) => {
14
14
const plugin = { name : 'a' , shortcut : 'a' , module : { } }
15
15
const hydratedPlugin = flattenPlugin ( plugin , false , { } )
16
16
expect ( hydratedPlugin . name ) . toBe ( 'a' )
17
17
expect ( hydratedPlugin . shortcut ) . toBe ( 'a' )
18
18
expect ( hydratedPlugin . enabled ) . toBe ( false )
19
19
} )
20
20
21
- test ( 'shoould flatten functional plugin correctly.' , ( ) => {
21
+ test ( 'should flatten functional plugin correctly.' , ( ) => {
22
22
const config = jest . fn ( ( ) => ( { enhanceAppFiles : 'file' } ) )
23
23
const plugin = { name : 'a' , shortcut : 'a' , module : config }
24
24
const pluginOptions = { }
@@ -33,7 +33,7 @@ describe('flattenPlugin', () => {
33
33
expect ( Object . getPrototypeOf ( config . mock . calls [ 0 ] [ 1 ] ) ) . toBe ( pluginContext )
34
34
} )
35
35
36
- test ( 'shoould flatten functional plugin correctly - options defaults to \'{}\'.' , ( ) => {
36
+ test ( 'should flatten functional plugin correctly - options defaults to \'{}\'.' , ( ) => {
37
37
const config = jest . fn ( ( ) => ( { enhanceAppFiles : 'file' } ) )
38
38
const plugin = { name : 'a' , shortcut : 'a' , module : config }
39
39
const pluginOptions = undefined
0 commit comments