Skip to content

Commit

Permalink
eslint fix after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
sadasant committed Feb 18, 2017
1 parent 5dbe624 commit e4ff533
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions test/array.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const expect = chai.expect
describe('Array Functions', function () {
it('compactJoin', function () {
expect(f.compactJoin(',', [ 1, undefined, 2, null, 3 ])).to.eql('1,2,3')
expect(f.compactJoin(' and ', [ null, 'Alice', 'Bob', false, ])).to.eql('Alice and Bob')
expect(f.compactJoin(' and ', [ null, 'Alice', 'Bob', false ])).to.eql('Alice and Bob')
})
it('dotJoin', function () {
expect(f.dotJoin([ 1, undefined, 2, null, 3 ])).to.eql('1.2.3')
expect(f.dotJoin([ null, 'Alice', 'Bob', false, ])).to.eql('Alice.Bob')
expect(f.dotJoin([ null, 'Alice', 'Bob', false ])).to.eql('Alice.Bob')
})
it('repeated', function () {
expect(f.repeated([ 1, 1, 2, 3, 3, 4 ])).to.eql([ 1, 3 ])
Expand Down
12 changes: 6 additions & 6 deletions test/conversions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@ import * as f from '../src'
chai.expect()
const expect = chai.expect

describe('Converted Functions', function() {
describe('Converted Functions', function () {
const hero = {
name: 'Heracles',
father: 'Zeus',
bornAt: 'Thebes'
}

it('getIn', function() {
it('getIn', function () {
expect(f.getIn(hero, 'name')).to.eql(_.get('name', hero))
expect(f.getIn(hero)('name')).to.eql(_.get('name')(hero))
})
it('pickIn', function() {
it('pickIn', function () {
expect(f.pickIn(hero, 'name')).to.eql(_.pick('name', hero))
expect(f.pickIn(hero, ['name', 'father'])).to.eql(_.pick(['name', 'father'], hero))
expect(f.pickIn(hero)(['name', 'father'])).to.eql(_.pick(['name', 'father'])(hero))
})
it('includesIn', function() {
it('includesIn', function () {
expect(f.includesIn(hero, 'name')).to.eql(_.includes('name', hero))
expect(f.includesIn(hero, 'Heracles')).to.eql(_.includes('Heracles', hero))
expect(f.includesIn(hero)('Zeus')).to.eql(_.includes('Zeus')(hero))
})
it('extendOn', function() {
it('extendOn', function () {
let clone = _.clone(hero)
expect(f.extendOn(clone, { name: 'Hercules' })).to.eql(_.extend({ name: 'Hercules' }, clone))
clone = _.clone(hero)
expect(f.extendOn(clone, { consort: 'Auge' })).to.eql(_.extend({ consort: 'Auge' }, clone))
})
it('defaultsOn', function() {
it('defaultsOn', function () {
let clone = _.clone(hero)
expect(f.defaultsOn(clone, { consort: 'Auge' })).to.eql(_.defaults({ consort: 'Auge' }, clone))
})
Expand Down
2 changes: 1 addition & 1 deletion test/objects.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('Object Functions', function () {
})
})
it('renameProperty', function () {
const o = { a: 1 };
const o = { a: 1 }
const newO = f.renameProperty('a', 'b', o)
expect(o).to.deep.equal(newO)
expect(o).to.deep.equal({ b: 1 })
Expand Down

0 comments on commit e4ff533

Please sign in to comment.