Skip to content

Commit

Permalink
Make test independent of struct property ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasschmidt committed Oct 18, 2023
1 parent 703f439 commit 50ca852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ex_json_schema/schema_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ defmodule ExJsonSchema.SchemaTest do
schema = %{"properties" => "foo"}

assert_raise ExJsonSchema.Schema.InvalidSchemaError,
~s(schema did not pass validation against its meta-schema: [%ExJsonSchema.Validator.Error{error: %ExJsonSchema.Validator.Error.Type{expected: ["object"], actual: "string"}, path: "#/properties"}]),
~r/schema did not pass validation against its meta-schema: \[%ExJsonSchema.Validator.Error{error: %ExJsonSchema.Validator.Error.Type{/,
fn -> resolve(schema) end

assert_raise ExJsonSchema.Schema.InvalidSchemaError,
Expand Down

0 comments on commit 50ca852

Please sign in to comment.