Skip to content

Commit 514cba1

Browse files
committed
test: add test case
1 parent 51d268e commit 514cba1

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"textlint-tester": "^1.2.0"
4444
},
4545
"dependencies": {
46-
"kuromojin": "^1.3.0",
46+
"kuromojin": "^1.3.1",
4747
"morpheme-match": "^1.0.1"
4848
}
4949
}

test/textlint-rule-ja-no-weak-phrase-test.js

+11
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@ tester.run("textlint-rule-ja-no-weak-phrase", rule, {
4040
column: 4
4141
}
4242
]
43+
},
44+
{
45+
text: `またNode.jsで使われているCommonJSやES6 Modulesなどがなかった時代に作られた仕組みなので、
46+
それらと組み合わせる際には少し不向きな拡張の仕組みといえるかもしれません。`,
47+
errors: [
48+
{
49+
message: `弱い表現: "かも" が使われています。`,
50+
line: 2,
51+
column: 30
52+
}
53+
]
4354
}
4455
]
4556
});

0 commit comments

Comments
 (0)