UNPKG

gherkin-ast

Version:

JS model for Gherkin feature files

30 lines (29 loc) 1.01 kB
import { GherkinCommentHandler } from "../common"; import { GherkinExamples } from "../gherkinObject"; import { Comment } from "./comment"; import { TableRow } from "./tableRow"; import { Tag } from "./tag"; import { UniqueObject } from "./uniqueObject"; /** * Model for Examples table */ export declare class Examples extends UniqueObject { static parse(obj: GherkinExamples, comments?: GherkinCommentHandler): Examples; /** Keyword of the examples table */ keyword: "Examples" | "Scenarios" | string; /** Name of the examples table */ name: string; /** Tags of the examples table */ tags: Tag[]; /** Header of the examples table */ header: TableRow; /** Body of the examples table */ body: TableRow[]; /** Comment before all tags */ tagComment: Comment; /** Comment before the Examples */ precedingComment: Comment; constructor(keyword: string, name: string); clone(): Examples; replace(key: RegExp | string, value: string): void; }