From 9e2f1e15fe850b8b4ccfc141d4aeb242d41253ff Mon Sep 17 00:00:00 2001 From: kn1cht <16277200+kn1cht@users.noreply.github.com> Date: Sat, 10 Feb 2024 00:16:01 +0900 Subject: [PATCH] fix tester --- test/use-si-units-test.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/use-si-units-test.js b/test/use-si-units-test.js index d286b57..117b245 100644 --- a/test/use-si-units-test.js +++ b/test/use-si-units-test.js @@ -1,5 +1,5 @@ 'use strict'; -const TextLintTester = require('textlint-tester'); +import TextLintTester from "textlint-tester"; const tester = new TextLintTester(); // rule const rule = require('../src/use-si-units'); @@ -75,3 +75,11 @@ tester.run('use-si-units with options', } ] }); + + +tester.run('the words end with number', rule, { + valid: [ + '我ら5人合わせて四天王!', + 'The 5 of us together are the Four Heavenly Kings!' + ], +});