# test.govlab/quality/core/adapters/tool.stylua.adapter.test.ts

> 11 lines of code and 0 definitions.

Tree: Codebase Testing
Language: typescript
Canonical: https://banes-lab.com/anatomy/testing#file-testing-test-govlab-quality-core-adapters-tool-stylua-adapter-test-ts
Source text: https://banes-lab.com/source/testing/test.govlab/quality/core/adapters/tool.stylua.adapter.test.ts.txt

Listed in [test.govlab/quality/core/adapters](https://banes-lab.com/api/source/testing/test.govlab/quality/core/adapters.md), after [test.govlab/quality/core/adapters/tool.shellcheck.adapter.test.ts](https://banes-lab.com/source/testing/test.govlab/quality/core/adapters/tool.shellcheck.adapter.test.ts.md) and before [test.govlab/quality/core/adapters/tool.yamllint.adapter.test.ts](https://banes-lab.com/source/testing/test.govlab/quality/core/adapters/tool.yamllint.adapter.test.ts.md).

## Contained in

- [test.govlab/quality/core/adapters](https://banes-lab.com/anatomy/testing/folder-testing-test-govlab-quality-core-adapters.md)

## Source

```typescript
import { expect, test } from "vitest";
import { styluaFlags } from "@govlab/quality/core/adapters/tool.stylua.adapter.ts";

const INDENT_WIDTH = 2;

test("styluaFlags keeps the declared order and drops a value of the wrong type", () => {
    expect(styluaFlags({ columnWidth: "wide", indentType: "Spaces", indentWidth: INDENT_WIDTH })).toStrictEqual([
        "--indent-type",
        "Spaces",
        "--indent-width",
        "2",
    ]);
});
```
