{"size": 806, "ext": "js", "max_stars_repo_path": "src/decorators/__tests__/width-height-transition.js", "max_stars_repo_name": "kt3k/spn", "max_stars_repo_stars_event_min_datetime": "2017-01-02T13:57:31.000Z", "max_stars_repo_stars_event_max_datetime": "2017-01-02T13:57:31.000Z", "max_issues_repo_path": "src/decorators/__tests__/width-height-transition.js", "max_issues_repo_name": "kt3k/spn", "max_issues_repo_issues_event_min_datetime": "2016-05-02T17:44:06.000Z", "max_issues_repo_issues_event_max_datetime": "2019-04-13T04:25:57.000Z", "max_forks_repo_path": "src/decorators/__tests__/width-height-transition.js", "max_forks_repo_name": "kt3k/spn", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 61, "max_forks_count": null, "avg_line_length": 25.1875, "max_line_length": 72, "alphanum_fraction": 0.6290322581}
const { width, height, transition } = require('../')
const { expect } = require('chai')

class Foo {}

describe('width', () => {
  it('adds width method to the given class', () => {
    width(50)(Foo)

    expect(Foo.prototype.width).to.be.a('function')
    expect(new Foo().width()).to.equal(50)
  })
})

describe('height', () => {
  it('adds height method to the given class', () => {
    height(80)(Foo)

    expect(Foo.prototype.height).to.be.a('function')
    expect(new Foo().height()).to.equal(80)
  })
})

describe('transition.duration', () => {
  it('adds defaultTransitionDuration method to the given class', () => {
    transition.duration(170)(Foo)

    expect(Foo.prototype.defaultTransitionDuration).to.be.a('function')
    expect(new Foo().defaultTransitionDuration()).to.equal(170)
  })
})
