Skip to content

Commit

Permalink
πŸ“— add import statement to readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
rsslldnphy committed Mar 19, 2024
1 parent 54e8e19 commit 5f8daa9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ A tiny utility to make writing tests that assert against multiline strings a bit
When used as a tagged template literal, it trims any empty lines from the start and end of a multiline string, then, for the remaining lines, finds the shortest indentation and then unindents the whole string by that amount. This explanation perhaps makes it sound more complex than it is - an example of usage will hopefully help make it clear that its behaviour is pretty intuitive:

```typescript
import { unindent } from "@casekit/unindent";

describe("createSql", () => {
test("with unindent", () => {
expect(createSql(pb)).toEqual(unindent`
Expand Down

0 comments on commit 5f8daa9

Please sign in to comment.