{"size": 1012, "ext": "js", "max_stars_repo_path": "src/__tests__/matchers/toThrowMultiline.js", "max_stars_repo_name": "Undistraction/jasmine-multiline-matchers", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/__tests__/matchers/toThrowMultiline.js", "max_issues_repo_name": "Undistraction/jasmine-multiline-matchers", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/__tests__/matchers/toThrowMultiline.js", "max_forks_repo_name": "Undistraction/jasmine-multiline-matchers", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.4482758621, "max_line_length": 59, "alphanum_fraction": 0.4140316206}
describe(`toThrowMultiline()`, () => {
  it(`passes when error message is identical`, () => {
    const expectedMessage = `
              one
                two
                two
                  three
                two
                  three
                    four
                two
              one`

    const message = `one
  two
  two
    three
  two
    three
      four
  two
one`
    const f = () => {
      throw new Error(message)
    }

    expect(() => f()).toThrowMultiline(expectedMessage)
  })

  it(`fails when error message is not identical`, () => {
    const expectedMessage = `
            one
                two
                two
                  three
                two
                  three
                    four
                two
              one`

    const message = `one
  two
  two
    three
  two
    three
      four
  two
one`
    const f = () => {
      throw new Error(message)
    }

    expect(() => f()).not.toThrowMultiline(expectedMessage)
  })
})
