Skip to content

Commit

Permalink
test JSON.o
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Feb 19, 2024
1 parent 0e5f17d commit a564c7c
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 557 deletions.
1 change: 0 additions & 1 deletion lib/trailblazer/workflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ module Workflow
require "trailblazer/workflow/collaboration/lane"
require "trailblazer/workflow/collaboration/messages"
require "trailblazer/workflow/event"
# require "trailblazer/workflow/state/discovery/testing"

require "trailblazer/workflow/test/plan"

Expand Down
5 changes: 4 additions & 1 deletion test/discovery_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,9 @@ class DiscoveryTestPlanTest < Minitest::Spec
states, lanes_sorted, lanes_cfg = DiscoveryTest.states()

plan_structure = Trailblazer::Workflow::Test::Plan::Structure.(states, lanes_cfg: lanes_cfg)
puts plan_structure
# pp plan_structure
testing_json = JSON.pretty_generate(plan_structure)
# File.write "test/discovery_testing_json.json", testing_json
assert_equal testing_json, File.read("test/discovery_testing_json.json")
end
end
Loading

0 comments on commit a564c7c

Please sign in to comment.