Skip to content

Refactor tests to expect exceptions in a better way #18

@omarahm

Description

@omarahm

Current:

try {
  await schemaFacade.validateContractSchema(projectRevision, contract);
} catch (err) {
  assert.include(err.message, "Could'nt find any non-empty");
}

which doesn't fail the test if no exception was thrown, which is incorrect.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions