Skip to content

Commit

Permalink
fix(test): correct type of node
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jan 1, 2019
1 parent d235733 commit 7e41e91
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/wrap-report-handler-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import assert from 'assert'
import { textlint } from "textlint"
import Source from "structured-source"
import { wrapReportHandler } from "../src/wrap-report-handler";
import { TxtParentNode } from "@textlint/ast-node-types";

describe("wrapReportHandler", function () {
afterEach(function () {
Expand Down Expand Up @@ -79,7 +78,7 @@ describe("wrapReportHandler", function () {
ignoreNodeTypes: [context.Syntax.Code]
}, context, report => {
return {
[Syntax.Paragraph](node: TxtParentNode) {
[Syntax.Paragraph](node) {
const text = getSource(node);
expectedList.forEach(item => {
const index = text.search(item.name);
Expand Down Expand Up @@ -114,7 +113,7 @@ describe("wrapReportHandler", function () {
ignoreNodeTypes: [context.Syntax.Code]
}, context, report => {
return {
[Syntax.Paragraph](node: TxtParentNode) {
[Syntax.Paragraph](node) {
const text = context.getSource(node);
const source = new Source(text);
const indexOfCode = text.search("code");
Expand Down

0 comments on commit 7e41e91

Please sign in to comment.