@@ -7,9 +7,9 @@ import { createPluginStub } from "./fixtures/example-plugin";
7
7
describe ( "plugin-option" , ( ) => {
8
8
it ( "should load plugin options if match ext" , ( ) => {
9
9
const textlintCore = new TextLintCore ( ) ;
10
- const { getPlugin , getOptions } = createPluginStub ( ) ;
10
+ const { plugin , getOptions } = createPluginStub ( ) ;
11
11
const expectedOptions = { test : "expected" } ;
12
- textlintCore . setupPlugins ( { example : getPlugin ( ) } , { example : expectedOptions } ) ;
12
+ textlintCore . setupPlugins ( { example : plugin } , { example : expectedOptions } ) ;
13
13
textlintCore . setupRules ( { "example-rule" : require ( "./fixtures/example-rule" ) } ) ;
14
14
return textlintCore . lintText ( "test" , ".example" ) . then ( results => {
15
15
const actualOptions = getOptions ( ) ;
@@ -18,9 +18,9 @@ describe("plugin-option", () => {
18
18
} ) ;
19
19
it ( "should load plugin options when does't match any ext for instance availableExtensions()" , ( ) => {
20
20
const textlintCore = new TextLintCore ( ) ;
21
- const { getPlugin , getOptions } = createPluginStub ( ) ;
21
+ const { plugin , getOptions } = createPluginStub ( ) ;
22
22
const expectedOptions = { test : "expected" } ;
23
- textlintCore . setupPlugins ( { example : getPlugin ( ) } , { example : expectedOptions } ) ;
23
+ textlintCore . setupPlugins ( { example : plugin } , { example : expectedOptions } ) ;
24
24
textlintCore . setupRules ( { "example-rule" : require ( "./fixtures/example-rule" ) } ) ;
25
25
// .md is built-in
26
26
return textlintCore . lintText ( "test" , ".md" ) . then ( results => {
0 commit comments