Skip to content

Commit

Permalink
chore: updated snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnarus-G committed Apr 28, 2024
1 parent 2835da3 commit bec01bb
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 49 deletions.
8 changes: 4 additions & 4 deletions tests/snapshots/formatter__it_echos_line_comments.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ set BASE_URL env("hi")
// }

post `${env("b_url")}/asdf` {
header "Content-Type" "application/json"
// This a line comment
// And this is another
body m
header "Content-Type" "application/json"
// This a line comment
// And this is another
body m
}

// let l
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ expression: formatter.into_output()
set BASE_URL env("hi")

let t = {
value: 23,
love: "you",
hello: {
world: true,
test: {
ing: "true",
wow: {
b: 122
}
}
value: 23,
love: "you",
hello: {
world: true,
test: {
ing: "true",
wow: {
b: 122
}
}
}
}
let one = 1
let two = 3
Expand All @@ -31,14 +31,14 @@ let str = "ing"
let st = "ring"

post `${env("b_url")}/asdf` {
header "Content-Type" "application/json"
// This a line comment
// And this is another
body m
header "Content-Type" "application/json"
// This a line comment
// And this is another
body m
}

let l = t
let l = [null, t]
let aa = ["true", true, {
a: 5
a: 5
}]
60 changes: 30 additions & 30 deletions tests/snapshots/formatter__it_works.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,51 +5,51 @@ expression: formatter.into_output()
set BASE_URL env("hi")

let t = {
value: 23,
love: "you",
hello: {
world: true,
test: {
ing: "true",
wow: {
b: 122
}
}
value: 23,
love: "you",
hello: {
world: true,
test: {
ing: "true",
wow: {
b: 122
}
}
}
}
let l = t
let l = [null, t]
let l = {
l: l,
k: "asdf"
l: l,
k: "asdf"
}
let m = json(l)
let a = [m]
let c = json([{
"asdf": true,
test: 12434,
a: 124,
b: [{
we: 123
}]
asdf: true,
test: 12434,
a: 124,
b: [{
we: 123
}]
}])

get /admin {
header "Content-Type" "application/json"
body json({
"a": 12,
t: true
})
header "Content-Type" "application/json"
body json({
a: 12,
t: true
})
}

[test, 12, {
ness: false,
wow: [1, 2, 3]
ness: false,
wow: [1, 2, 3]
}]

post `${env("b_url")}/asdf` {
header "Content-Type" "application/json"
body m
header "Content-Type" "application/json"
body m
}

let sort = "asc"
Expand All @@ -70,12 +70,12 @@ text content
`

post /time {
body a
body a
}

get `${env("base")}/wer` {}

post /adsf {
header "Authorization" env("token")
body json(true)
header "Authorization" env("token")
body json(true)
}

0 comments on commit bec01bb

Please sign in to comment.