Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
angeloashmore committed Apr 28, 2016
1 parent 6e66596 commit ee5792a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class Component {
* @returns {Property} Configured property instance.
*/
addProp (name, value, props = {}, skipTransformer = false) {
const {validProps} = this.constructor
const { validProps } = this.constructor

if (!validProps[name]) {
throw new InvalidProvidedPropError()
Expand Down Expand Up @@ -164,8 +164,8 @@ export default class Component {
* @returns {Component} Provided component.
*/
addComponent (component) {
const {validComponents} = this.constructor
const {componentName} = component.constructor
const { validComponents } = this.constructor
const { componentName } = component.constructor

if (!(component instanceof Component)) {
throw new TypeError('Expected component to be an instance of Component.')
Expand Down Expand Up @@ -199,7 +199,7 @@ export default class Component {
* @returns {boolean} All required properties are present.
*/
validateRequired () {
const {requiredProps} = this.constructor
const { requiredProps } = this.constructor

if (difference(requiredProps, this.propNames()).length > 0) {
throw new InvalidComponentError()
Expand Down
2 changes: 1 addition & 1 deletion src/properties/DTSTAMP.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {formatDate} from '../helpers'
import { formatDate } from '../helpers'
import Property from '../Property'

/**
Expand Down
4 changes: 2 additions & 2 deletions test/integration/ics-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ cal.addProp('PRODID', 'XYZ Corp')
const event = new ICS.VEVENT()

event.addProp('UID', '1')
event.addProp('DTSTAMP', new Date('2015-07-18'), {VALUE: 'DATE'})
event.addProp('DTSTAMP', new Date('2015-07-18'), { VALUE: 'DATE' })
event.addProp('SUMMARY', 'Birthdate')
event.addProp('DTSTART', new Date('1991-03-07 07:00:00'), {VALUE: 'DATE-TIME'})
event.addProp('DTSTART', new Date('1991-03-07 07:00:00'), { VALUE: 'DATE-TIME' })
event.addProp('DTEND', new Date('1991-03-07 19:30:00'))

const eventAlarm = new ICS.VALARM()
Expand Down
2 changes: 1 addition & 1 deletion test/unit/Component.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import assert from 'assert'
import * as ICS from '../../src'
import Component from '../../src/Component'
import {VERSION} from '../../src/properties'
import { VERSION } from '../../src/properties'
import {
InvalidComponentError,
InvalidProvidedComponentError,
Expand Down

0 comments on commit ee5792a

Please sign in to comment.