<commit_before>const _ = require('lodash/fp')
const purespec = require('..')

describe('load()', () => {
  it('returns tests loaded from the given PureSpec module', () => {
    const actual = purespec.load('example.js')

    expect(actual).toBeInstanceOf(purespec.matchers.Test)
    expect(_.isFunction(actual.subject)).toBeTruthy()

    expect(actual).toMatchObject({
      name: 'Math.round()',
      runnables: [
        new purespec.matchers.Given(1, new purespec.matchers.Returns(1)),
        new purespec.matchers.Given(1.5, new purespec.matchers.Returns(2))
      ]
    })
  })
})<commit_msg>Remove an unnecessary usage of toMatchObject()<commit_after>const _ = require('lodash/fp')
const purespec = require('..')

describe('load()', () => {
  it('returns tests loaded from the given PureSpec module', () => {
    const actual = purespec.load('example.js')

    expect(actual).toBeInstanceOf(purespec.matchers.Test)
    expect(actual.name).toBe('Math.round()')
    expect(_.isFunction(actual.subject)).toBeTruthy()
    expect(actual.runnables).toEqual([
      new purespec.matchers.Given(1, new purespec.matchers.Returns(1)),
      new purespec.matchers.Given(1.5, new purespec.matchers.Returns(2))
    ])
  })
})
{'fraction_non_alphanumeric': 0.16721311475409836, 'fraction_numerical': 0.00819672131147541, 'mean_word_length': 4.045454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3050765', 'n_tokens_mistral': 415, 'n_tokens_neox': 402, 'n_words': 65}