Skip to content

Commit

Permalink
test: add test for un-ts/toml-tools#74
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed Nov 27, 2023
1 parent 706abde commit c615c4a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/toml/test/__snapshots__/fixtures.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`parser and printer > should format all fixtures > comments.toml 1`] = `
"# This is a TOML comment
# This is a multiline
# TOML comment
str = \\"I'm a string.\\"
"
`;

exports[`parser and printer > should format all fixtures > fixture1.toml 1`] = `
"[foo]
asfd = 1
Expand Down
6 changes: 6 additions & 0 deletions packages/toml/test/fixtures/comments.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This is a TOML comment

# This is a multiline
# TOML comment

str1 = "I'm a string."

0 comments on commit c615c4a

Please sign in to comment.