Interface ExpectFormatting

interface ExpectFormatting {
    after: string;
    before: string;
    disposeAfterCheck?: boolean;
    options?: FormattingOptions;
    parseOptions?: ParseHelperOptions;
    range?: Range;
}

Properties

after: string

Expected document content after formatting. The test case will compare this to the actual formatted document.

before: string

Document content before formatting.

disposeAfterCheck?: boolean

Whether to dispose the created documents right after performing the check.

Defaults to false.

options?: FormattingOptions

Options used by the formatter. Default:

{
insertSpaces: true,
tabSize: 4
}
parseOptions?: ParseHelperOptions

Parse options used to parse the text property.

range?: Range

If given, only the specified range will be affected by the formatter