Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup!: formatting
  • Loading branch information
jsjoeio committed Oct 24, 2022
commit 2a76d55d9fa34a8cebf50000b8d7b43a977f160c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ProvisionerJobLog } from "api/typesGenerated"
import { groupLogsByStage } from "./WorkspaceBuildLogs"

describe("groupLogsByStage", ()=> {
describe("groupLogsByStage", () => {
it("should group them by stage", () => {
const input: ProvisionerJobLog[] = [
{
Expand All @@ -10,25 +10,24 @@ describe("groupLogsByStage", ()=> {
log_source: "provisioner",
log_level: "debug",
stage: "build",
output: "test"
output: "test",
},
{
id: "2",
created_at: "oct 13",
log_source: "provisioner",
log_level: "debug",
stage: "cleanup",
output: "test"
output: "test",
},
{
id: "3",
created_at: "oct 13",
log_source: "provisioner",
log_level: "debug",
stage: "cleanup",
output: "done"
}

output: "done",
},
]

const actual = groupLogsByStage(input)
Expand Down