Skip to content

Commit

Permalink
fix(test): rename example plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Oct 4, 2015
1 parent 9cfa7d8 commit ab84f5e
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/config-test.js
Expand Up @@ -29,7 +29,7 @@ describe("config", function () {
configFile: path.join(__dirname, "fixtures", "plugin.textlintrc")
});
assert(config.plugins.length === 2);
assert(config.plugins[0] === "example-plugin");
assert(config.plugins[0] === "example");
assert(config.plugins[1] === "configurable-plugin");
});
it("should has rulesConfig that is loaded from plugins", function () {
Expand All @@ -38,7 +38,7 @@ describe("config", function () {
configFile: path.join(__dirname, "fixtures", "plugin.textlintrc")
});
const exampleRule = "example-rule";
const exampleRulesOptions = require("./fixtures/plugins/example-plugin").rulesConfig[exampleRule];
const exampleRulesOptions = require("./fixtures/plugins/textlint-plugin-example").rulesConfig[exampleRule];
const configurableRule = "configurable-rule";
const configurableRulesOptions = require("./fixtures/plugins/configurable-plugin").rulesConfig[configurableRule];
// "example-rule" : true
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/plugin.textlintrc
@@ -1,6 +1,6 @@
{
"plugins": [
"example-plugin",
"example",
"configurable-plugin"
]
}
@@ -1,5 +1,5 @@
{
"name": "example-plugin",
"name": "textlint-plugin-example",
"version": "1.0.0",
"description": "",
"main": "index.js",
Expand Down

0 comments on commit ab84f5e

Please sign in to comment.