Skip to content

Commit

Permalink
test: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jun 9, 2016
1 parent 51d268e commit 514cba1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"textlint-tester": "^1.2.0"
},
"dependencies": {
"kuromojin": "^1.3.0",
"kuromojin": "^1.3.1",
"morpheme-match": "^1.0.1"
}
}
11 changes: 11 additions & 0 deletions test/textlint-rule-ja-no-weak-phrase-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ tester.run("textlint-rule-ja-no-weak-phrase", rule, {
column: 4
}
]
},
{
text: `またNode.jsで使われているCommonJSやES6 Modulesなどがなかった時代に作られた仕組みなので、
それらと組み合わせる際には少し不向きな拡張の仕組みといえるかもしれません。`,
errors: [
{
message: `弱い表現: "かも" が使われています。`,
line: 2,
column: 30
}
]
}
]
});

0 comments on commit 514cba1

Please sign in to comment.