{"size": 664, "ext": "js", "max_stars_repo_path": "web/test/specs/web/component.js", "max_stars_repo_name": "robipop22/chunky", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "web/test/specs/web/component.js", "max_issues_repo_name": "robipop22/chunky", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "web/test/specs/web/component.js", "max_forks_repo_name": "robipop22/chunky", "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": 22.1333333333, "max_line_length": 63, "alphanum_fraction": 0.6792168675}
/* eslint-disable no-unused-expressions */

import React from 'react'
import savor from 'react-savor'
import { Component } from '../../../src'

savor

.add('should create and load a component', (context, done) => {
  context.spy(Component.prototype, 'render')

  const props = {
    width: 800,
    height: 600
  }

  const container = context.mount(<Component {...props}/>)
  const component = container.instance()

  context.expect(component.width).to.equal(800)
  context.expect(component.height).to.equal(600)
  component.onEvent("test", {})
  
  // And, we're looking good
  Component.prototype.render.restore()
  done()
})

.run('[Web] Component Rendering')
